Turn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery
[lhc/web/wiklou.git] / includes / specials / SpecialSearch.php
index d806be3..3f67e93 100644 (file)
@@ -415,10 +415,7 @@ class SpecialSearch extends SpecialPage {
                        return false;
                }
 
-               // Generate a random number between 0 and 1. If the
-               // number is less than the desired percentages run it.
-               $rand = rand( 0, getrandmax() ) / getrandmax();
-               return $this->getConfig()->get( 'SearchRunSuggestedQueryPercent' ) > $rand;
+               return $this->getConfig()->get( 'SearchRunSuggestedQuery' );
        }
 
        /**