Fixed some "declaration should be compatible" errors that showed up under WinXP QA
authorDan
Tue, 04 Aug 2009 15:02:00 -0400
changeset 1072 604213a07ce0
parent 1071 f374801eb775
child 1073 b19a9bcb6a45
Fixed some "declaration should be compatible" errors that showed up under WinXP QA
includes/namespaces/special.php
includes/template.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}";
--- 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);
   }