Permalink
Browse files

BUGFIX: Don't call strpos() with an empty delimiter, mb_strpos() is m…

…ore strict about this (#6751)
  • Loading branch information...
1 parent 4da42f2 commit 767aef979450c2006e06f367964263e57321d781 @sminnee sminnee committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 i18n/i18n.php
View
@@ -1821,7 +1821,7 @@ static function include_by_locale($locale, $load_plugins = true, $force_load = f
// Load translations from themes
$themesBase = $base . '/themes';
- if(is_dir($themesBase)) {
+ if(is_dir($themesBase) && SSViewer::current_theme()) {
foreach(scandir($themesBase) as $theme) {
if(
strpos($theme, SSViewer::current_theme()) === 0

0 comments on commit 767aef9

Please sign in to comment.