X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FTheme.php;h=50a4f6c55aff82be959f048acb01a00d8492d419;hb=06ea61f0edc0164d40f65594386a3148802ed96a;hp=c904f1defd1848e8fd8f08a7ac45c016393f349e;hpb=8293d5ed0af78ae6cc5629bb1f982a7b29794d32;p=friendica.git diff --git a/src/Module/Theme.php b/src/Module/Theme.php index c904f1defd..50a4f6c55a 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(); } }