makes function static to fix strict errors in parser tests script.
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 7 Jan 2007 18:52:45 +0000 (18:52 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 7 Jan 2007 18:52:45 +0000 (18:52 +0000)
includes/Revision.php
includes/User.php

index 75a81fe..c5235e2 100644 (file)
@@ -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 );
 
index 18475fd..35ff829 100644 (file)
@@ -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