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:
9911316
)
(bug 38897) Fix unhandled exception when visiting e.g. MediaWiki:Somemessage/0
author
Max Semenik
<maxsem.wiki@gmail.com>
Thu, 22 Nov 2012 00:39:54 +0000
(
04:39
+0400)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 7 Dec 2012 17:57:47 +0000
(17:57 +0000)
Change-Id: I9876e4fb21c2a1a3a0a14bff05633c7aef6a3fd3
includes/LocalisationCache.php
patch
|
blob
|
history
diff --git
a/includes/LocalisationCache.php
b/includes/LocalisationCache.php
index
94e823e
..
f6f5a76
100644
(file)
--- a/
includes/LocalisationCache.php
+++ b/
includes/LocalisationCache.php
@@
-1160,7
+1160,7
@@
class LCStore_CDB implements LCStore {
}
protected function getFileName( $code ) {
- if (
!$code
|| strpos( $code, '/' ) !== false ) {
+ if (
strval( $code ) === ''
|| strpos( $code, '/' ) !== false ) {
throw new MWException( __METHOD__ . ": Invalid language \"$code\"" );
}
return "{$this->directory}/l10n_cache-$code.cdb";