From: <var...@us...> - 2014-11-26 13:47:39
|
Revision: 9384 http://sourceforge.net/p/phpwiki/code/9384 Author: vargenau Date: 2014-11-26 13:47:32 +0000 (Wed, 26 Nov 2014) Log Message: ----------- Remove unused parameters Modified Paths: -------------- trunk/lib/plugin/DebugBackendInfo.php Modified: trunk/lib/plugin/DebugBackendInfo.php =================================================================== --- trunk/lib/plugin/DebugBackendInfo.php 2014-11-26 13:39:34 UTC (rev 9383) +++ trunk/lib/plugin/DebugBackendInfo.php 2014-11-26 13:47:32 UTC (rev 9384) @@ -54,7 +54,6 @@ extract($args); if (empty($userid) or $userid == $request->_user->UserName()) { $user = $request->_user; - $userid = $user->UserName(); } else { $user = WikiUser($userid); } @@ -141,7 +140,7 @@ $data[$key] = HTML::pre(ob_get_contents()); ob_end_clean(); } elseif (is_bool($val)) { - $data[$key] = $this->_showvalue($key, $val ? "true" : "false", $prefix); + $data[$key] = $this->_showvalue($val ? "true" : "false"); } elseif (is_string($val) && ((substr($val, 0, 2) == 'a:' or (substr($val, 0, 2) == 'O:'))) ) { @@ -194,14 +193,13 @@ HTML::raw(' '))), HTML::td(array( 'style' => 'color:black; background-color:white'), - $this->_showvalue($key, $val, $prefix)) + $this->_showvalue($val)) ); } return $rows; } - /* also used in plugin/EditMetaData */ - protected function _showvalue($key, $val, $prefix = '') + private function _showvalue($val) { return $val ? $val : HTML::raw(' '); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |