public function breadCrumbs() { if ($this->app->wg->Title->getNamespace() == NS_WIKIA_FORUM_TOPIC_BOARD) { $indexPage = F::build('Title', array('Forum', NS_SPECIAL), 'newFromText'); $path = array(); $path[] = array('title' => wfMsg('forum-forum-title', $this->app->wg->sitename), 'url' => $indexPage->getFullUrl()); $path[] = array('title' => wfMsg('forum-board-topics')); $topicTitle = F::build('Title', array($this->app->wg->Title->getText()), 'newFromURL'); if (!empty($topicTitle)) { $path[] = array('title' => $topicTitle->getPrefixedText()); } $this->response->setVal('path', $path); } else { parent::brickHeader(); } }