dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73960fe
)
Fix incomplete Language::getDatePreferences() documentation
author
Thiemo Mättig
<thiemo.maettig@wikimedia.de>
Wed, 24 May 2017 09:32:41 +0000
(11:32 +0200)
committer
Thiemo Mättig
<thiemo.maettig@wikimedia.de>
Wed, 24 May 2017 09:32:41 +0000
(11:32 +0200)
Look at languages/messages/MessagesEo.php for one of about a dozen real
world examples where this is set to false. All code calling
getDatePreferences checks if it got a truthy value first before using
it.
Change-Id: I4ef5c8be618d41039297325c9dd4cf554ea14559
languages/Language.php
patch
|
blob
|
history
diff --git
a/languages/Language.php
b/languages/Language.php
index
14e6f5c
..
fb45cf7
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-725,7
+725,7
@@
class Language {
}
/**
- * @return
array
+ * @return
string[]|bool List of date format preference keys, or false if disabled.
*/
public function getDatePreferences() {
return self::$dataCache->getItem( $this->mCode, 'datePreferences' );