function getStartBody()
 {
     # Do a link batch query for user pages
     if ($this->mResult->numRows()) {
         $lb = new LinkBatch();
         $this->mResult->seek(0);
         while ($row = $this->mResult->fetchObject()) {
             if ($row->img_user) {
                 $lb->add(NS_USER, str_replace(' ', '_', $row->img_user_text));
             }
         }
         $lb->execute();
     }
     return parent::getStartBody();
 }
Esempio n. 2
0
 function getStartBody()
 {
     # Do a link batch query for user pages
     if ($this->mResult->numRows()) {
         $lb = new LinkBatch();
         $this->mResult->seek(0);
         while ($row = $this->mResult->fetchObject()) {
             if ($row->img_user) {
                 $lb->add(NS_USER, str_replace(' ', '_', $row->img_user_text));
             }
         }
         $lb->execute();
     }
     # Cache messages used in each row
     $this->mMessages['imgdesc'] = wfMsgHtml('imgdesc');
     $this->mMessages['imgfile'] = wfMsgHtml('imgfile');
     return parent::getStartBody();
 }
Esempio n. 3
0
 function getStartBody()
 {
     global $wgOut;
     $wgOut->addModules('ext.codereview.overview');
     return parent::getStartBody();
 }