• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoapythonrubywindowsphpgameguibathyscaphec翻訳omegatframework計画中(planning stage)twitterdombtronvb.nettestarduinodirectxpreviewerゲームエンジン

PukiWiki


Commit MetaInfo

Revisionea1c908cc851ac15f1bd6874760434e6a9e339ce (tree)
Time2006-10-03 22:33:36
Authorhenoheno <henoheno>
Commiterhenoheno

Log Message

BugTrack2/182: With php.ini: allow_call_time_pass_reference = Off

'Warning: Call-time pass-by-reference has been deprecated'
with array_walk (Patched by Ratbeta)

Change Summary

Incremental Difference

--- a/plugin/ls2.inc.php
+++ b/plugin/ls2.inc.php
@@ -1,7 +1,7 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
33 //
4-// $Id: ls2.inc.php,v 1.24 2006/08/06 13:17:31 henoheno Exp $
4+// $Id: ls2.inc.php,v 1.25 2006/10/03 13:33:36 henoheno Exp $
55 //
66 // List plugin 2
77
@@ -34,7 +34,8 @@ function plugin_ls2_action()
3434 global $vars, $_ls2_msg_title;
3535
3636 $params = array();
37- foreach (array('title', 'include', 'reverse') as $key)
37+ $keys = array('title', 'include', 'reverse');
38+ foreach ($keys as $key)
3839 $params[$key] = isset($vars[$key]);
3940
4041 $prefix = isset($vars['prefix']) ? $vars['prefix'] : '';
@@ -66,8 +67,8 @@ function plugin_ls2_convert()
6667 }
6768 if ($prefix == '') $prefix = strip_bracket($vars['page']) . '/';
6869
69- foreach ($args as $key => $arg)
70- plugin_ls2_check_arg($arg, $key, $params);
70+ foreach ($args as $arg)
71+ plugin_ls2_check_arg($arg, $params);
7172
7273 $title = (! empty($params['_args'])) ? join(',', $params['_args']) : // Manual
7374 str_replace('$1', htmlspecialchars($prefix), $_ls2_msg_title); // Auto
@@ -100,7 +101,7 @@ function plugin_ls2_show_lists($prefix, & $params)
100101 natcasesort($pages);
101102 if ($params['reverse']) $pages = array_reverse($pages);
102103
103- foreach ($pages as $page) $params["page_$page"] = 0;
104+ foreach ($pages as $page) $params['page_ ' . $page] = 0;
104105
105106 if (empty($pages)) {
106107 return str_replace('$1', htmlspecialchars($prefix), $_ls2_err_nopages);
@@ -197,7 +198,7 @@ function plugin_ls2_list_push(& $params, $level)
197198 }
198199
199200 // オプションを解析する
200-function plugin_ls2_check_arg($value, $key, & $params)
201+function plugin_ls2_check_arg($value, & $params)
201202 {
202203 if ($value == '') {
203204 $params['_done'] = TRUE;