From: Brad Jorsch Date: Wed, 20 May 2015 19:44:01 +0000 (-0400) Subject: Pass a message key to MalformedTitleException constructor X-Git-Tag: 1.31.0-rc.0~11347^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=f0b510f9d94742a6da57e1aebbee914808b3f4a3;p=lhc%2Fweb%2Fwiklou.git Pass a message key to MalformedTitleException constructor 'badtitletext' seems to be equivalent to the situation before I4da8ecb4, so let's go with that. Bug: T99818 Change-Id: Ifdf66d2806df3ae7d2d378343491dd8976c31981 --- diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 62ab667cfd..58c49f4bac 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -114,7 +114,7 @@ class MediaWiki { // If we get here, we definitely don't have a valid title; throw an exception. // Try to get detailed invalid title exception first, fall back to MalformedTitleException. Title::newFromTextThrow( $title ); - throw new MalformedTitleException( null, $title ); + throw new MalformedTitleException( 'badtitletext', $title ); } return $ret;