Skip to content
This repository
Browse code

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

…ore strict about this (#6751)
  • Loading branch information...
commit 767aef979450c2006e06f367964263e57321d781 1 parent 4da42f2
Sam Minnée authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  i18n/i18n.php
2  i18n/i18n.php
@@ -1821,7 +1821,7 @@ static function include_by_locale($locale, $load_plugins = true, $force_load = f
1821 1821
 		// Load translations from themes
1822 1822
 		$themesBase = $base . '/themes';
1823 1823
 		
1824  
-		if(is_dir($themesBase)) {
  1824
+		if(is_dir($themesBase) && SSViewer::current_theme()) {
1825 1825
 			foreach(scandir($themesBase) as $theme) {
1826 1826
 				if(
1827 1827
 					strpos($theme, SSViewer::current_theme()) === 0

0 notes on commit 767aef9

Please sign in to comment.
Something went wrong with that request. Please try again.