# HG changeset patch # User Dan # Date 1249412520 14400 # Node ID 604213a07ce0e69801d7dd75b3187ba93b007d19 # Parent f374801eb7751e1e9748f76c053074f1d40e0610 Fixed some "declaration should be compatible" errors that showed up under WinXP QA diff -r f374801eb775 -r 604213a07ce0 includes/namespaces/special.php --- a/includes/namespaces/special.php Mon Aug 03 02:58:43 2009 -0400 +++ b/includes/namespaces/special.php Tue Aug 04 15:02:00 2009 -0400 @@ -82,7 +82,8 @@ } } - function error_404() + // We add the unused variable $userpage here to silence "declaration should be compatible" errors + function error_404($userpage = false) { global $lang, $output; $func_name = "page_{$this->namespace}_{$this->page_id}"; diff -r f374801eb775 -r 604213a07ce0 includes/template.php --- a/includes/template.php Mon Aug 03 02:58:43 2009 -0400 +++ b/includes/template.php Tue Aug 04 15:02:00 2009 -0400 @@ -2840,7 +2840,8 @@ * @param $vars array */ - function assign_vars($vars) + // We add the unused variable $from_internal here to silence "declaration should be compatible" errors + function assign_vars($vars, $from_internal = false) { $this->tpl_strings = array_merge($this->tpl_strings, $vars); } @@ -2850,7 +2851,8 @@ * @param $vars array */ - function assign_bool($vars) + // We add the unused variable $from_internal here to silence "declaration should be compatible" errors + function assign_bool($vars, $from_internal = false) { $this->tpl_bool = array_merge($this->tpl_bool, $vars); }