журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r22972: LJSUP-13769: S2 styles Journal Promo blo...

Committer: nnikulochkina
LJSUP-13769: S2 styles Journal Promo block
U   trunk/bin/upgrading/s2layers/core1.s2
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/bin/upgrading/s2layers/core1.s2
===================================================================
--- trunk/bin/upgrading/s2layers/core1.s2	2012-09-26 08:38:07 UTC (rev 22971)
+++ trunk/bin/upgrading/s2layers/core1.s2	2012-09-26 09:39:35 UTC (rev 22972)
@@ -639,8 +639,8 @@
     function builtin journalpromo() : string
     "Returns rendered journal promo.";
 
-    function builtin render_journalpromo()
-    "Print rendered journal promo.";
+    function builtin render_journalpromo() : bool
+    "Print rendered journal promo and return true if journal promo is not empty.";
 }
 
 class TagsPage extends Page

Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2012-09-26 08:38:07 UTC (rev 22971)
+++ trunk/cgi-bin/LJ/S2.pm	2012-09-26 09:39:35 UTC (rev 22972)
@@ -5369,6 +5369,8 @@
     
     my $rendered = Page__journalpromo($ctx, $this);
     $S2::pout->($rendered);
+
+    return $rendered ? 1 : 0;
 }
 
 

Tags: livejournal, nikulochkina, nnikulochkina, pm, s2
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