Mark LinkSearch as uncacheable and fix its headers display. Followup r78786
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 22 Dec 2010 16:19:32 +0000 (16:19 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 22 Dec 2010 16:19:32 +0000 (16:19 +0000)
includes/specials/SpecialLinkSearch.php

index a54c738..a47301a 100644 (file)
@@ -38,8 +38,14 @@ class LinkSearchPage extends QueryPage {
                parent::__construct( $name );
        }
        
+       function isCacheable() {
+               return false;
+       }
+       
        function execute( $par ) {
                global $wgOut, $wgRequest, $wgUrlProtocols, $wgMiserMode, $wgLang, $wgScript;
+               $this->setHeaders();
+               
                $target = $wgRequest->getVal( 'target', $par );
                $namespace = $wgRequest->getIntorNull( 'namespace', null );