/** * 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(); }
/** * 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(); }