* Copy fix for old search URLs with Lucene search plugin from REL1_4
[lhc/web/wiklou.git] / index.php
index 8f6fc3b..7b61ddf 100644 (file)
--- a/index.php
+++ b/index.php
@@ -103,8 +103,11 @@ if ( !is_null( $wgTitle ) && !$wgTitle->userCanRead() ) {
 }
 
 wfProfileIn( 'main-action' );
-
 $search = $wgRequest->getText( 'search' );
+if( $wgDisableInternalSearch && !is_null( $search ) && $search !== '' ) {
+       $wgTitle = Title::makeTitle( NS_SPECIAL, 'Search' );
+}
+
 if( !$wgDisableInternalSearch && !is_null( $search ) && $search !== '' ) {
        require_once( 'includes/SpecialSearch.php' );
        $wgTitle = Title::makeTitle( NS_SPECIAL, 'Search' );