/**
  * Get the Title object that we'll be acting on, as specified in the WebRequest
  * @return Title
  */
 public function getTitle()
 {
     if (!$this->context->hasTitle()) {
         $this->context->setTitle($this->parseTitle());
     }
     return $this->context->getTitle();
 }
示例#2
0
 /**
  * Get the Title object that we'll be acting on, as specified in the WebRequest
  * @return Title
  */
 public function getTitle()
 {
     if (!$this->context->hasTitle()) {
         try {
             $this->context->setTitle($this->parseTitle());
         } catch (MalformedTitleException $ex) {
             $this->context->setTitle(SpecialPage::getTitleFor('Badtitle'));
         }
     }
     return $this->context->getTitle();
 }