summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-05-28 01:47:59 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-05-28 01:47:59 +1000
commite6d7e71175e388b7d5e356eebb9ff350c941026e (patch)
tree4fca57043d97fe0707b8851678fa57d48a2372d3 /inc
parenteef49937941769c2ba3b9abb7319d1f24ef6e6d7 (diff)
renamed "homepage" directory to "themes"
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php6
-rw-r--r--inc/functions.php8
2 files changed, 7 insertions, 7 deletions
diff --git a/inc/config.php b/inc/config.php
index c603a95d..d65e867e 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -246,10 +246,10 @@
//$config['dir']['static'] = $config['root'] . 'static/';
// Where to store the .html templates. This folder and templates must exist or fatal errors will be thrown.
$config['dir']['template'] = getcwd() . '/templates';
- // For the homepage generation files (themes, etc.)
- $config['dir']['homepage'] = getcwd() . '/templates/homepage';
+ // For the themes (homepages, etc.)
+ $config['dir']['themes'] = getcwd() . '/templates/themes';
// Same as above, but a URI (accessable by web interface, not locally)
- $config['dir']['homepage_uri'] = 'templates/homepage';
+ $config['dir']['themes_uri'] = 'templates/themes';
// Homepage directory
$config['dir']['home'] = '';
diff --git a/inc/functions.php b/inc/functions.php
index 831a9981..2efa6178 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -143,11 +143,11 @@
function loadThemeConfig($_theme) {
global $config;
- if(!file_exists($config['dir']['homepage'] . '/' . $_theme . '/info.php'))
+ if(!file_exists($config['dir']['themes'] . '/' . $_theme . '/info.php'))
return false;
// Load theme information into $theme
- include $config['dir']['homepage'] . '/' . $_theme . '/info.php';
+ include $config['dir']['themes'] . '/' . $_theme . '/info.php';
return $theme;
}
@@ -162,8 +162,8 @@
$theme = loadThemeConfig($_theme);
- if(file_exists($config['dir']['homepage'] . '/' . $_theme . '/theme.php')) {
- require_once $config['dir']['homepage'] . '/' . $_theme . '/theme.php';
+ if(file_exists($config['dir']['themes'] . '/' . $_theme . '/theme.php')) {
+ require_once $config['dir']['themes'] . '/' . $_theme . '/theme.php';
$theme['build_function']($action, themeSettings());
}