X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FTheme.php;h=1282fc783f47e8161f18180d2c82ab66b597826d;hb=4495e83eca67986ecbd5e083509c782116d77c6c;hp=c904f1defd1848e8fd8f08a7ac45c016393f349e;hpb=2ec3a97393959e42d450e074271d2d622d25701f;p=friendica.git diff --git a/src/Module/Theme.php b/src/Module/Theme.php index c904f1defd..1282fc783f 100644 --- a/src/Module/Theme.php +++ b/src/Module/Theme.php @@ -1,6 +1,6 @@ argc == 4) { - $theme = $a->argv[2]; - $theme = Strings::sanitizeFilePathItem($theme); + if (file_exists("view/theme/$theme/theme.php")) { + require_once "view/theme/$theme/theme.php"; + } - // 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"); - } + // 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"; } exit();