diff --git a/core/includes/theme.inc b/core/includes/theme.inc index a501991..b58958a 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -965,7 +965,7 @@ function theme_get_setting($setting_name, $theme = NULL) { // Generate the path to the logo image. if ($cache[$theme]->get('features.logo')) { if ($cache[$theme]->get('logo.use_default')) { - if (!file_exists($logo_path = dirname($theme_object->filename) . '/logo.png')) { + if (!file_exists($logo_path = $theme_object->getPath . '/logo.png')) { $logo_path = 'core/misc/druplicon.png'; } } @@ -981,7 +981,7 @@ function theme_get_setting($setting_name, $theme = NULL) { // Generate the path to the favicon. if ($cache[$theme]->get('features.favicon')) { if ($cache[$theme]->get('favicon.use_default')) { - if (!file_exists($favicon_path = dirname($theme_object->filename) . '/favicon.ico')) { + if (!file_exists($favicon_path = $theme_object->getPath . '/favicon.ico')) { $favicon_path = 'core/misc/favicon.ico'; } }