Skip to content

Commit

Permalink
BUGFIX: Don't call strpos() with an empty delimiter, mb_strpos() is m…
Browse files Browse the repository at this point in the history
…ore strict about this (#6751)
  • Loading branch information
Sam Minnee committed Mar 23, 2012
1 parent 4da42f2 commit 767aef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n/i18n.php
Expand Up @@ -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
Expand Down

0 comments on commit 767aef9

Please sign in to comment.