fixing broken search links e.g. from prev/next links on results page
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 26 Jun 2004 12:56:44 +0000 (12:56 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 26 Jun 2004 12:56:44 +0000 (12:56 +0000)
index.php

index 3eb2572..9eb5e29 100644 (file)
--- a/index.php
+++ b/index.php
@@ -56,7 +56,7 @@ if ( !is_null( $wgTitle ) && !$wgTitle->userCanRead() ) {
 
 if ( $search = $wgRequest->getText( 'search' ) ) {
        $wgTitle = Title::makeTitle( NS_SPECIAL, "Search" );
-       if( $wgRequest->getVal( 'fulltext' ) ) {
+       if( $wgRequest->getVal( 'fulltext' ) || !is_null( $wgRequest->getVal( 'offset' ) ) ) {
                wfSearch( $search );
        } else {
                wfGo( $search );