Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[ljcom] r11041: LJSUP-9913: Refactoring of print_comment...

Committer: mchervonniy
LJSUP-9913: Refactoring of print_comments() function in s2 styles
U   trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2
U   trunk/bin/upgrading/s2layers/nebula/layout.s2
U   trunk/bin/upgrading/s2layers/sup/layout.s2
U   trunk/bin/upgrading/s2layers/tranquilityii/layout.s2
U   trunk/bin/upgrading/s2layers/unearthed/layout.s2
U   trunk/bin/upgrading/s2layers/voxhtml/layout.s2
Modified: trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2	2011-09-27 09:50:31 UTC (rev 11040)
+++ trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2	2011-09-27 10:25:03 UTC (rev 11041)
@@ -2223,18 +2223,12 @@
 # ENTRY
 # -----------------------------------
 
-function EntryPage::print_comments( Comment[] comments )
-{
-    if ( size $comments == 0 )
-    {
-        return;
+function EntryPage::print_comments (Comment[] cs) {
+    if (size $cs == 0) { return; }
+    foreach var Comment c ($cs) {
+        $this->print_comment($c);
+        $this->print_comments($c.replies);
     }
-
-    foreach var Comment c ( $comments )
-    {
-        $this->print_comment( $c );
-        $this->print_comments( $c.replies );
-    }
 }
 
 

Modified: trunk/bin/upgrading/s2layers/nebula/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/nebula/layout.s2	2011-09-27 09:50:31 UTC (rev 11040)
+++ trunk/bin/upgrading/s2layers/nebula/layout.s2	2011-09-27 10:25:03 UTC (rev 11041)
@@ -1592,9 +1592,7 @@
 
 ## --  p r i n t   e n t r y   c o m m e n t  -- ##############################
 function EntryPage::print_comments (Comment[] cs) {
-    var Page p = get_page();
     if (size $cs == 0) { return; }
-
     foreach var Comment c ($cs) {
         $this->print_comment($c);
         $this->print_comments($c.replies);

Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2011-09-27 09:50:31 UTC (rev 11040)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2011-09-27 10:25:03 UTC (rev 11041)
@@ -1476,9 +1476,7 @@
 }
 
 function EntryPage::print_comments (Comment[] cs) {
-    var Page p = get_page();
     if (size $cs == 0) { return; }
-
     foreach var Comment c ($cs) {
         $this->print_comment($c);
         $this->print_comments($c.replies);

Modified: trunk/bin/upgrading/s2layers/tranquilityii/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/tranquilityii/layout.s2	2011-09-27 09:50:31 UTC (rev 11040)
+++ trunk/bin/upgrading/s2layers/tranquilityii/layout.s2	2011-09-27 10:25:03 UTC (rev 11041)
@@ -1292,9 +1292,7 @@
 }
 
 function EntryPage::print_comments (Comment[] cs) {
-    var Page p = get_page();
     if (size $cs == 0) { return; }
-
     foreach var Comment c ($cs) {
         $this->print_comment($c);
         $this->print_comments($c.replies);

Modified: trunk/bin/upgrading/s2layers/unearthed/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/unearthed/layout.s2	2011-09-27 09:50:31 UTC (rev 11040)
+++ trunk/bin/upgrading/s2layers/unearthed/layout.s2	2011-09-27 10:25:03 UTC (rev 11041)
@@ -1371,7 +1371,6 @@
 }
 
 function EntryPage::print_comments (Comment[] cs) {
-    var Page p = get_page();
     if (size $cs == 0) { return; }
     foreach var Comment c ($cs) {
         $this->print_comment($c);

Modified: trunk/bin/upgrading/s2layers/voxhtml/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/voxhtml/layout.s2	2011-09-27 09:50:31 UTC (rev 11040)
+++ trunk/bin/upgrading/s2layers/voxhtml/layout.s2	2011-09-27 10:25:03 UTC (rev 11041)
@@ -2339,9 +2339,7 @@
 }
 
 function EntryPage::print_comments (Comment[] cs) {
-    var Page p = get_page();
     if (size $cs == 0) { return; }
-
     foreach var Comment c ($cs) {
         $this->print_comment($c);
         $this->print_comments($c.replies);

Tags: fiskus_boulder, ljcom, 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