X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FTheme.php;h=fe532db4050b6db0c7b915e2497d07c4d41d6ce8;hb=dd534919d7e3af010bbc2477e3d0e89a47dd0872;hp=c904f1defd1848e8fd8f08a7ac45c016393f349e;hpb=13a10b8f20ac7c5927c39d9e80e1a7d515385736;p=friendica.git diff --git a/src/Module/Theme.php b/src/Module/Theme.php index c904f1defd..fe532db405 100644 --- a/src/Module/Theme.php +++ b/src/Module/Theme.php @@ -1,6 +1,6 @@ parameters['theme']); - if ($a->argc == 4) { - $theme = $a->argv[2]; - $theme = Strings::sanitizeFilePathItem($theme); - - // set the path for later use in the theme styles - $THEMEPATH = "view/theme/$theme"; - if (file_exists("view/theme/$theme/style.php")) { - require_once("view/theme/$theme/style.php"); - } + if (file_exists("view/theme/$theme/theme.php")) { + require_once "view/theme/$theme/theme.php"; } - exit(); + // set the path for later use in the theme styles + $THEMEPATH = "view/theme/$theme"; + if (file_exists("view/theme/$theme/style.php")) { + require_once "view/theme/$theme/style.php"; + } + System::exit(); } }