Merge "Fix incorrect usage of Title::newFromText"

This commit is contained in:
jenkins-bot 2014-04-14 08:40:55 +00:00 committed by Gerrit Code Review
commit bbe9639550

View file

@ -390,9 +390,9 @@ class EchoEvent {
} elseif ( $this->pageId ) {
return $this->title = Title::newFromId( $this->pageId );
} elseif ( isset( $this->extra['page_title'], $this->extra['page_namespace'] ) ) {
return $this->title = Title::newFromText(
$this->extra['page_title'],
$this->extra['page_namespace']
return $this->title = Title::makeTitleSafe(
$this->extra['page_namespace'],
$this->extra['page_title']
);
}
return null;