X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FTheme.php;h=5161725d5e7f64c0639c35384bf1ad0cf062f84b;hb=c62762297cf2a06bad998a2b950b96102cb6e682;hp=c904f1defd1848e8fd8f08a7ac45c016393f349e;hpb=13a10b8f20ac7c5927c39d9e80e1a7d515385736;p=friendica.git diff --git a/src/Module/Theme.php b/src/Module/Theme.php index c904f1defd..5161725d5e 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(); } }