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
commit af97e1d687
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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");
}