]> git.llucax.com Git - software/bife/bife-all.git/blobdiff - modules/album/BIFE/Album/Thumbs.php
Core and Basic modules are now much more like they should. Huge code clean:
[software/bife/bife-all.git] / modules / album / BIFE / Album / Thumbs.php
index 7c5ddeca284f4283e440dc3aa96c97d0f7a52ad5..4deaae84c0464b57f15c093c2cc8225c5e915e72 100644 (file)
@@ -98,7 +98,7 @@ class BIFE_Album_Thumbs extends BIFE_Widget {
      */
     function render(&$template) // ~X2C
     {
-        $template->setGroup('album');
+        $template->pushGroup('album');
         $list = $this->getList();
         $tot  = count($list);
         $rows = ceil($tot / $this->attrs['COLUMNS']);
@@ -122,13 +122,13 @@ class BIFE_Album_Thumbs extends BIFE_Widget {
                 }
                 $template->parseBuffered('cell', 'CONTENTS', $cell);
             }
-            $template->parseBuffered('row', 'CONTENTS', $template->popBuffer('cell'));
+            $template->parseBuffered('row', 'CONTENTS',
+                $template->popBuffer('cell'));
         }
-        $out = $template->parse(
-            'body',
-            array('DESC' => $this->getDescription(), 'CONTENTS' => $template->popBuffer('row'))
-        );
-        $template->unsetGroup();
+        $out = $template->parse('body', array(
+            'DESC'     => $this->getDescription(),
+            'CONTENTS' => $template->popBuffer('row')));
+        $template->popGroup();
         return $out;
     }
     // -X2C