mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
Merge "Fix incorrect usage of Title::newFromText"
This commit is contained in:
commit
bbe9639550
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue