BUGFIX: Don't call strpos() with an empty delimiter, mb_strpos() is more strict about this (#6751)

This commit is contained in:
Sam Minnee 2012-03-24 11:14:20 +13:00
parent 4da42f2baf
commit 767aef9794

View File

@ -1821,7 +1821,7 @@ class i18n extends Object implements TemplateGlobalProvider {
// 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