function formatValue($name, $value)
 {
     global $wgLang, $wgContLang;
     static $linker = null;
     if (empty($linker)) {
         $linker = class_exists('DummyLinker') ? new DummyLinker() : new Linker();
     }
     $row = $this->mCurrentRow;
     $ns = $row->page_namespace;
     $title = $row->page_title;
     if (is_null($ns)) {
         $ns = $row->thread_article_namespace;
         $title = $row->thread_article_title;
     }
     switch ($name) {
         case 'thread_subject':
             $title = Title::makeTitleSafe($ns, $title);
             $link = $linker->link($title, $value, array(), array(), array('known'));
             return Html::rawElement('div', array('dir' => $wgContLang->getDir()), $link);
         case 'th_timestamp':
             $formatted = $wgLang->timeanddate($value);
             $title = Title::makeTitleSafe($ns, $title);
             return $linker->link($title, $formatted, array(), array('lqt_oldid' => $row->th_id));
         default:
             return parent::formatValue($name, $value);
     }
 }
 function formatValue($name, $value)
 {
     global $wgLang, $wgContLang, $wgOut;
     $wgOut->setRobotPolicy('noindex, nofollow');
     $row = $this->mCurrentRow;
     $ns = $row->page_namespace;
     $title = $row->page_title;
     if (is_null($ns)) {
         $ns = $row->thread_article_namespace;
         $title = $row->thread_article_title;
     }
     switch ($name) {
         case 'thread_subject':
             $title = Title::makeTitleSafe($ns, $title);
             $link = Linker::link($title, htmlspecialchars($value), array(), array(), array('known'));
             return Html::rawElement('div', array('dir' => $wgContLang->getDir()), $link);
         case 'th_timestamp':
             $formatted = $wgLang->timeanddate($value);
             $title = Title::makeTitleSafe($ns, $title);
             return Linker::link($title, $formatted, array(), array('lqt_oldid' => $row->th_id));
         default:
             return parent::formatValue($name, $value);
     }
 }