From: Roan Kattouw Date: Wed, 22 Dec 2010 16:19:32 +0000 (+0000) Subject: Mark LinkSearch as uncacheable and fix its headers display. Followup r78786 X-Git-Tag: 1.31.0-rc.0~33184 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=6a9261f98d7e9ca4565955264fd56d71145d0d31;p=lhc%2Fweb%2Fwiklou.git Mark LinkSearch as uncacheable and fix its headers display. Followup r78786 --- diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index a54c7385e9..a47301aa6d 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -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 );