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
Do not pass null to Title::newFromText in Special:MyLanguage
[lhc/web/wiklou.git]
/
includes
/
Message.php
diff --git
a/includes/Message.php
b/includes/Message.php
index
93a37cb
..
134af0e
100644
(file)
--- a/
includes/Message.php
+++ b/
includes/Message.php
@@
-156,7
+156,7
@@
*
* @since 1.17
*/
*
* @since 1.17
*/
-class Message {
+class Message
implements MessageSpecifier
{
/**
* In which language to get this message. True, which is the default,
/**
* In which language to get this message. True, which is the default,
@@
-249,7
+249,7
@@
class Message {
$this->key = reset( $this->keysToTry );
$this->parameters = array_values( $params );
$this->key = reset( $this->keysToTry );
$this->parameters = array_values( $params );
- $this->language = $language ?
$language
: $wgLang;
+ $this->language = $language ?: $wgLang;
}
/**
}
/**
@@
-276,7
+276,7
@@
class Message {
* Returns the message key.
*
* If a list of multiple possible keys was supplied to the constructor, this method may
* Returns the message key.
*
* If a list of multiple possible keys was supplied to the constructor, this method may
- * return any of these keys. After the message
ah
s been fetched, this method will return
+ * return any of these keys. After the message
ha
s been fetched, this method will return
* the key that was actually used to fetch the message.
*
* @since 1.21
* the key that was actually used to fetch the message.
*
* @since 1.21