Merge pull request #6488 from tobiasd/20190122-modview

restore THEMEPATH variable in mod/view
This commit is contained in:
Hypolite Petovan
2019-01-22 08:00:20 -05:00
committed by GitHub

View File

@@ -13,6 +13,8 @@ function view_init(App $a)
if ($a->argc == 4){
$theme = $a->argv[2];
// 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");
}