aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/style.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-10-16 17:08:19 +0100
committerThomas Willingham <founder@kakste.com>2013-10-16 17:08:19 +0100
commit30e4a360847762bfc8afce6704261ea5cc38650c (patch)
tree64a177a47999f5692d2c926d78e6bb2b1232eb3a /view/theme/redbasic/php/style.php
parenta3b358d0256a8519744ab71cfb02fcb8f650a271 (diff)
downloadvolse-hubzilla-30e4a360847762bfc8afce6704261ea5cc38650c.tar.gz
volse-hubzilla-30e4a360847762bfc8afce6704261ea5cc38650c.tar.bz2
volse-hubzilla-30e4a360847762bfc8afce6704261ea5cc38650c.zip
Don't break themes by using functions we don't need.
If you've got a theme that started off copying Redbasic (ie, all of you) need to do this too.
Diffstat (limited to 'view/theme/redbasic/php/style.php')
-rw-r--r--view/theme/redbasic/php/style.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index b5d020937..1f3e46d9d 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -1,4 +1,5 @@
<?php
+ logger('redbasic start');
// Get the UID of the channel owner
$uid = get_theme_uid();
@@ -29,14 +30,14 @@
// not --- like the mobile theme does instead.
if (($schema) && ($schema != '---')) {
- $schemefile = 'view/theme/' . current_theme() . '/schema/' . $schema . '.php';
+ $schemefile = 'view/theme/redbasic/schema/' . $schema . '.php';
require_once ($schemefile);
}
// If we haven't got a schema, load the default. We shouldn't touch this - we
// should leave it for admins to define for themselves.
if (! $schema) {
- if(file_exists('view/theme/' . current_theme() . '/schema/default.php')) {
- $schemefile = 'view/theme/' . current_theme() . '/schema/' . 'default.php';
+ if(file_exists('view/theme/redbasic/schema/default.php')) {
+ $schemefile = 'view/theme/redbasic/schema/' . 'default.php';
require_once ($schemefile);
}
}
@@ -97,8 +98,8 @@
// Apply the settings
- if(file_exists('view/theme/' . current_theme() . '/css/style.css')) {
- $x = file_get_contents('view/theme/' . current_theme() . '/css/style.css');
+ if(file_exists('view/theme/redbasic/css/style.css')) {
+ $x = file_get_contents('view/theme/redbasic/css/style.css');
$options = array (
'$nav_bg_1' => $nav_bg_1,