dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add language fallback from rup (Aromanian) to ro (Romanian)"
[lhc/web/wiklou.git]
/
includes
/
title
/
MalformedTitleException.php
diff --git
a/includes/title/MalformedTitleException.php
b/includes/title/MalformedTitleException.php
index
799961a
..
2dddac5
100644
(file)
--- a/
includes/title/MalformedTitleException.php
+++ b/
includes/title/MalformedTitleException.php
@@
-22,7
+22,7
@@
* MalformedTitleException is thrown when a TitleParser is unable to parse a title string.
* @since 1.23
*/
* MalformedTitleException is thrown when a TitleParser is unable to parse a title string.
* @since 1.23
*/
-class MalformedTitleException extends Exception {
+class MalformedTitleException extends Exception
implements ILocalizedException
{
private $titleText = null;
private $errorMessage = null;
private $errorMessageParameters = [];
private $titleText = null;
private $errorMessage = null;
private $errorMessageParameters = [];
@@
-72,4
+72,12
@@
class MalformedTitleException extends Exception {
public function getErrorMessageParameters() {
return $this->errorMessageParameters;
}
public function getErrorMessageParameters() {
return $this->errorMessageParameters;
}
+
+ /**
+ * @since 1.29
+ * @return Message
+ */
+ public function getMessageObject() {
+ return wfMessage( $this->getErrorMessage(), $this->getErrorMessageParameters() );
+ }
}
}