* Also suppress the perfached notice on listoutput
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 16 Oct 2005 02:29:30 +0000 (02:29 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 16 Oct 2005 02:29:30 +0000 (02:29 +0000)
includes/QueryPage.php

index 54a32b9..60bbd57 100644 (file)
@@ -263,7 +263,8 @@ class QueryPage {
                        $sql =
                                "SELECT qc_type as type, qc_namespace as namespace,qc_title as title, qc_value as value
                                 FROM $querycache WHERE qc_type='$type'";
-                       $wgOut->addWikiText( wfMsg( 'perfcached' ) );
+                       if ( ! $this->listoutput )
+                               $wgOut->addWikiText( wfMsg( 'perfcached' ) );
                }
 
                $sql .= $this->getOrder();