From: Antoine Musso Date: Sun, 7 Jan 2007 18:52:45 +0000 (+0000) Subject: makes function static to fix strict errors in parser tests script. X-Git-Tag: 1.31.0-rc.0~54596 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=38f208f2136175f0a83f1458f801f2c823430265;p=lhc%2Fweb%2Fwiklou.git makes function static to fix strict errors in parser tests script. --- diff --git a/includes/Revision.php b/includes/Revision.php index 75a81fe93e..c5235e2255 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -508,7 +508,7 @@ class Revision { * @param string $prefix table prefix (default 'old_') * @return string $text|false the text requested */ - function getRevisionText( $row, $prefix = 'old_' ) { + public static function getRevisionText( $row, $prefix = 'old_' ) { $fname = 'Revision::getRevisionText'; wfProfileIn( $fname ); diff --git a/includes/User.php b/includes/User.php index 18475fdd28..35ff8299b9 100644 --- a/includes/User.php +++ b/includes/User.php @@ -760,12 +760,12 @@ class User { /** * Combine the language default options with any site-specific options * and add the default language variants. - * + * Not really private cause it's called by Language class * @return array * @static * @private */ - function getDefaultOptions() { + static function getDefaultOptions() { global $wgNamespacesToBeSearchedDefault; /** * Site defaults will override the global/language defaults