forked from leftypol/leftypol
theme install functions
This commit is contained in:
parent
517167ea6f
commit
cec63231cf
2 changed files with 15 additions and 4 deletions
|
@ -155,7 +155,7 @@
|
|||
global $config, $_theme;
|
||||
$_theme = $theme;
|
||||
|
||||
$theme = loadThemeConfig($_theme, $action);
|
||||
$theme = loadThemeConfig($_theme);
|
||||
|
||||
if(file_exists($config['dir']['themes'] . '/' . $_theme . '/theme.php')) {
|
||||
require_once $config['dir']['themes'] . '/' . $_theme . '/theme.php';
|
||||
|
@ -169,7 +169,7 @@
|
|||
// List themes
|
||||
$query = query("SELECT `theme` FROM `theme_settings` WHERE `name` IS NULL AND `value` IS NULL") or error(db_error());
|
||||
while($theme = $query->fetch()) {
|
||||
rebuildTheme($theme['theme']);
|
||||
rebuildTheme($theme['theme'], $action);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue