From 31fedf359dfc7fe3c6de9118d8498ad845ba0c81 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 22 Jan 2019 10:36:42 +0100 Subject: [PATCH 1/2] restore THEMEPATH variable in mod/view --- mod/view.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/view.php b/mod/view.php index c59eea2982..640606bce1 100644 --- a/mod/view.php +++ b/mod/view.php @@ -13,6 +13,7 @@ function view_init(App $a) if ($a->argc == 4){ $theme = $a->argv[2]; + $THEMEPATH = "view/theme/$theme"; if(file_exists("view/theme/$theme/style.php")) require_once("view/theme/$theme/style.php"); } From 169e9b0fc5601164d2f9cc2aabd07ee70aeba68d Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 22 Jan 2019 13:44:49 +0100 Subject: [PATCH 2/2] add comment about the PATH --- mod/view.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/view.php b/mod/view.php index 640606bce1..f4f1692cb6 100644 --- a/mod/view.php +++ b/mod/view.php @@ -13,6 +13,7 @@ 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");