/**
  * "Fixes" a site link. Don't display site name in project namespace.
  *
  * @param $comment String: link to "fix"
  * @return String: "fixed" comment
  */
 function fixPageTitle($page_title, $page_data)
 {
     if ($page_title instanceof Title) {
         if ($page_title->inNamespace(NS_FILE)) {
             $repo = new ForeignDBRepo($this->streamlineForeignDBRepo($page_data['prefix'][0]));
             $f = ForeignDBFile::newFromTitle($page_title, $repo);
             return ' <a href="' . htmlspecialchars($f->getDescriptionUrl()) . '"><img src="' . htmlspecialchars($f->createThumb(200, 100)) . '"></img></a>';
         } else {
             return ' <a href="' . htmlspecialchars($page_title->getFullURL()) . "\">{$page_title->getText()}</a>";
         }
     }
     return '';
 }
 function loadFromFile()
 {
     wfProfileIn(__METHOD__);
     $this->getLocalFileLogic()->beforeLoadFromFile();
     parent::loadFromFile();
     $this->getLocalFileLogic()->afterLoadFromFile();
     wfProfileOut(__METHOD__);
 }