예제 #1
0
 /**
  * Override to check query validity.
  */
 function doQuery($offset, $limit, $shownavigation = true)
 {
     global $wgOut;
     list($this->mMungedQuery, $clause) = LinkSearchPage::mungeQuery($this->mQuery, $this->mProt);
     if ($this->mMungedQuery === false) {
         $wgOut->addWikiText(wfMsg('linksearch-error'));
     } else {
         // For debugging
         // Generates invalid xhtml with patterns that contain --
         //$wgOut->addHTML( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" );
         parent::doQuery($offset, $limit, $shownavigation);
     }
 }
예제 #2
0
 /**
  * Override to check query validity.
  */
 function doQuery($offset = false, $limit = false)
 {
     list($this->mMungedQuery, ) = LinkSearchPage::mungeQuery($this->mQuery, $this->mProt);
     if ($this->mMungedQuery === false) {
         $this->getOutput()->addWikiMsg('linksearch-error');
     } else {
         // For debugging
         // Generates invalid xhtml with patterns that contain --
         //$this->getOutput()->addHTML( "\n<!-- " . htmlspecialchars( $this->mMungedQuery ) . " -->\n" );
         parent::doQuery($offset, $limit);
     }
 }
 /**
  * Override to check query validity.
  */
 function doQuery($offset, $limit, $shownavigation = true)
 {
     global $wgOut;
     $this->mMungedQuery = LinkSearchPage::mungeQuery($this->mQuery, $this->mProt);
     if ($this->mMungedQuery === false) {
         $wgOut->addWikiText(wfMsg('linksearch-error'));
     } else {
         // For debugging
         $wgOut->addHtml("\n<!-- " . htmlspecialchars($this->mMungedQuery) . " -->\n");
         parent::doQuery($offset, $limit, $shownavigation);
     }
 }