E_STRICT fixlets: more static method markers
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 2 May 2007 16:02:23 +0000 (16:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 2 May 2007 16:02:23 +0000 (16:02 +0000)
Also fixed a public function which was listed as private in comments for some reason

includes/SearchEngine.php

index 24795ba..7c627ff 100644 (file)
@@ -40,12 +40,10 @@ class SearchEngine {
         * If an exact title match can be find, or a very slightly close match,
         * return the title. If no match, returns NULL.
         *
-        * @static
         * @param string $term
         * @return Title
-        * @private
         */
-       function getNearMatch( $searchterm ) {
+       public static function getNearMatch( $searchterm ) {
                global $wgContLang;
 
                $allSearchTerms = array($searchterm);
@@ -176,9 +174,8 @@ class SearchEngine {
        /**
         * Make a list of searchable namespaces and their canonical names.
         * @return array
-        * @access public
         */
-       function searchableNamespaces() {
+       public static function searchableNamespaces() {
                global $wgContLang;
                $arr = array();
                foreach( $wgContLang->getNamespaces() as $ns => $name ) {