X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FTheme.php;h=57dfaa4d634ca5522493d5c4d1055e4b6ed603bd;hb=69984ac6bcf08a1c3ce8967ad3ec4ca954039b75;hp=334f31a6e55f1f72c60f33ae72f92ba082b92c7b;hpb=74bc3de4723af3f2bf61705edba090caa102d171;p=friendica.git diff --git a/src/Core/Theme.php b/src/Core/Theme.php index 334f31a6e5..57dfaa4d63 100644 --- a/src/Core/Theme.php +++ b/src/Core/Theme.php @@ -1,6 +1,6 @@ startRecording('file'); $theme_file = file_get_contents("view/theme/$theme/theme.php"); - DI::profiler()->saveTimestamp($stamp1, "file"); + DI::profiler()->stopRecording(); $result = preg_match("|/\*.*\*/|msU", $theme_file, $matches); @@ -214,7 +214,7 @@ class Theme $theme = $a->getCurrentTheme(); - $parent = Strings::sanitizeFilePathItem($a->theme_info['extends'] ?? $theme); + $parent = Strings::sanitizeFilePathItem($a->getThemeInfoValue('extends', $theme)); $paths = [ "view/theme/$theme/$file", @@ -271,7 +271,7 @@ class Theme $theme = Strings::sanitizeFilePathItem($theme); $a = DI::app(); - $base_theme = $a->theme_info['extends'] ?? ''; + $base_theme = $a->getThemeInfoValue('extends') ?? ''; if (file_exists("view/theme/$theme/config.php")) { return "view/theme/$theme/config.php";