madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r11472: LJSUP-11241: empty journal behaviour has...

Committer: sbelyaev
LJSUP-11241: empty journal behaviour has been changed
U   trunk/htdocs/misc/latest.bml
Modified: trunk/htdocs/misc/latest.bml
===================================================================
--- trunk/htdocs/misc/latest.bml	2012-02-13 16:30:28 UTC (rev 11471)
+++ trunk/htdocs/misc/latest.bml	2012-02-14 08:29:11 UTC (rev 11472)
@@ -11,15 +11,15 @@
         return;
     }
 
+
+    my $latest_link = $u->journal_base;
+
     my $latest_item = LJ::get_latest_ditemid($u);
-    if (!$latest_item) {
-        warn "no ditemid";
-        LJ::Request->pnotes ('error' => 'e404');
-        LJ::Request->pnotes ('remote' => LJ::get_remote());
-        BML::return_error_status(404);
+    if ($latest_item) {
+        $latest_link .=  "/$latest_item.html";
     }
     
-    my $latest_link = $u->journal_base . "/$latest_item.html";
     return BML::redirect($latest_link);
 }
 _code?>
+

Tags: bml, ljcom, madeon, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments