Index: trunk/extensions/MWSearch/MWSearch_body.php |
— | — | @@ -64,9 +64,6 @@ |
65 | 65 | global $wgContLang, $wgLuceneUseRelated; |
66 | 66 | $fname = 'LuceneSearch::replacePrefixes'; |
67 | 67 | wfProfileIn($fname); |
68 | | - |
69 | | - // "search everything" keyword |
70 | | - $allkeyword = wfMsgForContent('searchall'); |
71 | 68 | |
72 | 69 | // quick check, most of the time we don't need any rewriting |
73 | 70 | if(strpos($query,':')===false){ |
— | — | @@ -74,6 +71,9 @@ |
75 | 72 | return $query; |
76 | 73 | } |
77 | 74 | |
| 75 | + // "search everything" keyword |
| 76 | + $allkeyword = wfMsgForContent('searchall'); |
| 77 | + |
78 | 78 | // check if this is query for related articles |
79 | 79 | $relatedkey = wfMsgForContent('searchrelated').':'; |
80 | 80 | if($wgLuceneUseRelated && strncmp($query, $relatedkey, strlen($relatedkey)) == 0){ |