forked from leftypol/leftypol
rebuild themes
This commit is contained in:
parent
30f0145ea0
commit
1bd14ef1d2
2 changed files with 19 additions and 2 deletions
|
@ -101,6 +101,16 @@
|
|||
return $theme;
|
||||
}
|
||||
|
||||
function rebuildTheme() {
|
||||
$query = query("SELECT `value` AS `theme` FROM `theme_settings` WHERE `name` = 'theme'") or error(db_error());
|
||||
if($theme = $query->fetch()) {
|
||||
// A theme is installed
|
||||
|
||||
$theme = loadThemeConfig($theme['theme']);
|
||||
$theme['build_function'](themeSettings());
|
||||
}
|
||||
}
|
||||
|
||||
function themeSettings() {
|
||||
$query = query("SELECT * FROM `theme_settings`") or error(db_error());
|
||||
$settings = Array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue