From 9b06c5355c60905206e315fe6b55f35f55609567 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 2 May 2007 16:02:23 +0000 Subject: [PATCH] E_STRICT fixlets: more static method markers Also fixed a public function which was listed as private in comments for some reason --- includes/SearchEngine.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 24795ba9b9..7c627ff3a4 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -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 ) { -- 2.20.1