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:
6db5ae1
)
*Check if a String and empty. This was '0' works as a title again.
author
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 13 Nov 2007 03:45:59 +0000
(
03:45
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 13 Nov 2007 03:45:59 +0000
(
03:45
+0000)
languages/Language.php
patch
|
blob
|
history
diff --git
a/languages/Language.php
b/languages/Language.php
index
616b70f
..
9d54e15
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-835,7
+835,7
@@
class Language {
}
function ucfirst( $str ) {
- if (
empty($str)
) return "";
+ if (
$str === ''
) return "";
if ( ord($str[0]) < 128 ) return ucfirst($str);
else return self::uc($str,true); // fall back to more complex logic in case of multibyte strings
}
@@
-867,7
+867,7
@@
class Language {
}
function lcfirst( $str ) {
- if (
empty($str)
) return "";
+ if (
$str === ''
) return "";
if ( ord($str[0]) < 128 ) {
// editing string in place = cool
$str[0]=strtolower($str[0]);