aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-17 17:46:30 -0700
committerredmatrix <git@macgirvin.com>2016-05-17 17:46:30 -0700
commit20cb4130d47028cbedf09f8da9feb6ccf8f759db (patch)
tree705d8853724f1555cc797ed85176ad123632bed1 /include/plugin.php
parent51edd472c2e007490bdad3198ba1b2a3d7a09c45 (diff)
downloadvolse-hubzilla-20cb4130d47028cbedf09f8da9feb6ccf8f759db.tar.gz
volse-hubzilla-20cb4130d47028cbedf09f8da9feb6ccf8f759db.tar.bz2
volse-hubzilla-20cb4130d47028cbedf09f8da9feb6ccf8f759db.zip
support work for a long-term fix for issue #390, essentially one can specify a theme:schema string anywhere a theme is input. It will be honoured unless an existing schema setting over-rides this behaviour. This should also be backward compatible but the theme selection code has been cleaned up slightly and there may be subtle differences in behaviour after this commit. On my site this required a page refresh as the first page load after this change was a bit confused.
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-xinclude/plugin.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/plugin.php b/include/plugin.php
index 8dd67bb0c..89047d4b1 100755
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -648,12 +648,13 @@ function theme_include($file, $root = '') {
else
$parent = 'NOPATH';
- $theme = current_theme();
+ $theme = Zotlabs\Render\Theme::current();
+ $thname = $theme[0];
$ext = substr($file,strrpos($file,'.')+1);
$paths = array(
- "{$root}view/theme/$theme/$ext/$file",
+ "{$root}view/theme/$thname/$ext/$file",
"{$root}view/theme/$parent/$ext/$file",
"{$root}view/site/$ext/$file",
"{$root}view/$ext/$file",