Пример #1
0
 /**
  * Get article type (as in: games, tv series, etc)
  * of current page
  *
  * @param Title $title
  * @return string
  */
 public static function getArticleType($title = null)
 {
     global $wgTitle;
     if (is_null($title)) {
         $title = $wgTitle;
     }
     $articleService = new ArticleService($title);
     return $articleService->getArticleType();
 }