forked from leftypol/leftypol
basic beta for themes
This commit is contained in:
parent
1bd14ef1d2
commit
757b09dec9
3 changed files with 28 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue