• 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

Revision9342619eb24468640fd8c9fad540ca5c96f1c79f (tree)
Time2014-06-02 06:13:12
Authorhenoheno <henoheno>
Commiterumorigu

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
@@ -38,7 +38,8 @@ function plugin_ls2_action()
3838 global $vars, $_ls2_msg_title;
3939
4040 $params = array();
41- foreach (array('title', 'include', 'reverse') as $key)
41+ $keys = array('title', 'include', 'reverse');
42+ foreach ($keys as $key)
4243 $params[$key] = isset($vars[$key]);
4344
4445 $prefix = isset($vars['prefix']) ? $vars['prefix'] : '';
@@ -70,8 +71,8 @@ function plugin_ls2_convert()
7071 }
7172 if ($prefix == '') $prefix = strip_bracket($vars['page']) . '/';
7273
73- foreach ($args as $key => $arg)
74- plugin_ls2_check_arg($arg, $key, $params);
74+ foreach ($args as $arg)
75+ plugin_ls2_check_arg($arg, $params);
7576
7677 $title = (! empty($params['_args'])) ? join(',', $params['_args']) : // Manual
7778 str_replace('$1', htmlsc($prefix), $_ls2_msg_title); // Auto
@@ -104,7 +105,7 @@ function plugin_ls2_show_lists($prefix, & $params)
104105 natcasesort($pages);
105106 if ($params['reverse']) $pages = array_reverse($pages);
106107
107- foreach ($pages as $page) $params["page_$page"] = 0;
108+ foreach ($pages as $page) $params['page_ ' . $page] = 0;
108109
109110 if (empty($pages)) {
110111 return str_replace('$1', htmlsc($prefix), $_ls2_err_nopages);
@@ -201,7 +202,7 @@ function plugin_ls2_list_push(& $params, $level)
201202 }
202203
203204 // オプションを解析する
204-function plugin_ls2_check_arg($value, $key, & $params)
205+function plugin_ls2_check_arg($value, & $params)
205206 {
206207 if ($value == '') {
207208 $params['_done'] = TRUE;