diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-14 17:10:59 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-14 17:10:59 +1000 |
| commit | 757b09dec938c541dc5c858474b07c47b25248dc (patch) | |
| tree | eabed69785a4fe5df57058a4d1f0f5a1c272ca99 /inc | |
| parent | 1bd14ef1d2d4183757681f5b586abce91e3c4a5f (diff) | |
basic beta for themes
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/config.php | 1 | ||||
| -rw-r--r-- | inc/functions.php | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index ca2bcf90..766d824f 100644 --- a/inc/config.php +++ b/inc/config.php @@ -137,6 +137,7 @@ $config['error']['invalidpost'] = 'That post doesn\'t exist…'; $config['error']['404'] = 'Page not found.'; $config['error']['modexists'] = 'That mod <a href="?/users/%d">already exists</a>!'; + $config['error']['invalidtheme'] = 'That theme doesn\'t exist!'; // How many reports you can create in the same request. $config['report_limit'] = 2; diff --git a/inc/functions.php b/inc/functions.php index fd00dc9f..b90abe1b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -96,6 +96,9 @@ function loadThemeConfig($_theme) { global $config; + if(!file_exists($config['dir']['homepage'] . '/' . $_theme . '/theme.php')) + return false; + // Load theme information into $theme include $config['dir']['homepage'] . '/' . $_theme . '/theme.php'; return $theme; |
