mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Don't call strpos() with an empty delimiter, mb_strpos() is more strict about this (#6751)
This commit is contained in:
parent
4da42f2baf
commit
767aef9794
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user