OSDN Git Service

BugTrack2/182: With php.ini: allow_call_time_pass_reference = Off r1_4_7_autoalias_merge_start
authorhenoheno <henoheno>
Sun, 6 Aug 2006 13:17:31 +0000 (22:17 +0900)
committerhenoheno <henoheno>
Sun, 6 Aug 2006 13:17:31 +0000 (22:17 +0900)
 'Warning: Call-time pass-by-reference has been deprecated'
 with array_walk (Patched by Ratbeta)

plugin/ls2.inc.php

index 6c4e01b..51a9fee 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: ls2.inc.php,v 1.23 2004/12/05 11:37:37 henoheno Exp $
+// $Id: ls2.inc.php,v 1.24 2006/08/06 13:17:31 henoheno Exp $
 //
 // List plugin 2
 
@@ -66,7 +66,8 @@ function plugin_ls2_convert()
        }
        if ($prefix == '') $prefix = strip_bracket($vars['page']) . '/';
 
-       array_walk($args, 'plugin_ls2_check_arg', & $params);
+       foreach ($args as $key => $arg)
+               plugin_ls2_check_arg($arg, $key, $params);
 
        $title = (! empty($params['_args'])) ? join(',', $params['_args']) :   // Manual
                str_replace('$1', htmlspecialchars($prefix), $_ls2_msg_title); // Auto