Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Added default template parameter for setSite method

givanzd50882752eda
diff --git a/system/sites.php b/system/sites.php
index 1d95a8d..bc45766 100755
--- a/system/sites.php
+++ b/system/sites.php
@@ -108,7 +108,11 @@ class Sites {
return 'default';
}
- public static function setTheme($site, $theme) {
+ public static function setTheme($site, $theme, $template = '') {
+ if ($template) {
+ self :: setSiteData($site, 'template', $template);
+ }
+
return self :: setSiteData($site, 'theme', $theme);
}