X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FTheme.php;h=fe532db4050b6db0c7b915e2497d07c4d41d6ce8;hb=3bca4fe2a64671d09e08346456cdfa6c12f996e9;hp=c904f1defd1848e8fd8f08a7ac45c016393f349e;hpb=d09b3f5bdeae444f785f6283e55dbf2f61caadac;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(); } }