Exemplo n.º 1
0
 /**
  * Add a miscellaneous page
  * @param $title
  * @param $sortkey
  * @param $pageLength
  * @param $isRedirect bool
  */
 function addPage($title, $sortkey, $pageLength, $isRedirect = false)
 {
     global $wgContLang;
     $link = Linker::link($title);
     if ($isRedirect) {
         // This seems kind of pointless given 'mw-redirect' class,
         // but keeping for back-compatibility with user css.
         $link = '<span class="redirect-in-category">' . $link . '</span>';
     }
     $this->articles[] = $link;
     $this->articles_start_char[] = $wgContLang->convert($this->collation->getFirstLetter($sortkey));
 }
 /**
  * Add a miscellaneous page
  * @param Title $title
  * @param string $sortkey
  * @param int $pageLength
  * @param bool $isRedirect
  */
 function addPage($title, $sortkey, $pageLength, $isRedirect = false)
 {
     global $wgContLang;
     $this->articles[] = $this->generateLink('page', $title, $isRedirect);
     $this->articles_start_char[] = $wgContLang->convert($this->collation->getFirstLetter($sortkey));
 }