Backport fixes.
[platal.git] / plugins / compiler.iterate.php
index ff028be..3cbf3f2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************/
 
-function iterate_end($tag_attrs, &$compiler) {
+function iterate_end($tag_attrs, $compiler) {
     return 'endwhile;';
 }
 
-function smarty_compiler_iterate($tag_attrs, &$compiler)
+function smarty_compiler_iterate($tag_attrs, $compiler)
 {
     static $reg = false;
     if (!$reg) {
@@ -50,6 +50,6 @@ function smarty_compiler_iterate($tag_attrs, &$compiler)
         .  "while ((\$this->_tpl_vars['$_item'] = \$_iterate_{$_item}->next()) !== null):";
 }
 
-/* vim: set expandtab: */
+/* vim: set expandtab enc=utf-8: */
 
 ?>