mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Merge pull request #6488 from tobiasd/20190122-modview
restore THEMEPATH variable in mod/view
This commit is contained in:
commit
af97e1d687
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue