From 86b6cdaa28e5c6748963971cda61d09efc851a22 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 30 Jun 2005 08:26:03 +0000 Subject: [PATCH] * Copy fix for old search URLs with Lucene search plugin from REL1_4 --- RELEASE-NOTES | 1 + index.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0aa3089408..23fa83b363 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -431,6 +431,7 @@ Various bugfixes, small features, and a few experimental things: categories only if the page does not exist. * (bug 2625) Keep group & user settings when paging in Listusers * (bug 2627) Fix regression: diff radio button initial selection +* Copy fix for old search URLs with Lucene search plugin from REL1_4 === Caveats === diff --git a/index.php b/index.php index 8f6fc3bc4a..7b61ddf5ff 100644 --- 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' ); -- 2.20.1