Merge pull request #6488 from tobiasd/20190122-modview

restore THEMEPATH variable in mod/view
pull/6497/head
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
1 changed files with 2 additions and 0 deletions

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