예제 #1
0
 public function getWallForIndexPage($title)
 {
     if ($title->getNamespace() == NS_WIKIA_FORUM_TOPIC_BOARD) {
         $topicTitle = $this->getTopicTitle();
         if (!empty($topicTitle)) {
             $wall = Wall::newFromRelatedPages($title, $topicTitle->getArticleId());
             $this->response->setVal('topicText', $topicTitle->getPrefixedText());
             $wall->disableCache();
         } else {
             $wall = Wall::newFromTitle($title);
         }
     } else {
         $wall = Wall::newFromTitle($title);
     }
     return $wall;
 }