/** * If the page we've just displayed is in the "Image" namespace, * we follow it with an upload history of the image and its usage. */ protected function imageHistory() { $this->loadFile(); $out = $this->getContext()->getOutput(); $pager = new ImageHistoryPseudoPager($this); $out->addHTML($pager->getBody()); $out->preventClickjacking($pager->getPreventClickjacking()); $this->mPage->getFile()->resetHistory(); // free db resources # Exist check because we don't want to show this on pages where an image # doesn't exist along with the noimage message, that would suck. -ævar if ($this->mPage->getFile()->exists()) { $this->uploadLinksBox(); } }
/** * If the page we've just displayed is in the "Image" namespace, * we follow it with an upload history of the image and its usage. */ protected function imageHistory() { global $wgOut; $this->loadFile(); $pager = new ImageHistoryPseudoPager($this); $wgOut->addHTML($pager->getBody()); $this->img->resetHistory(); // free db resources # Exist check because we don't want to show this on pages where an image # doesn't exist along with the noimage message, that would suck. -ævar if ($this->img->exists()) { $this->uploadLinksBox(); } }