aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Admin/Themes.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Admin/Themes.php')
-rw-r--r--Zotlabs/Module/Admin/Themes.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Module/Admin/Themes.php b/Zotlabs/Module/Admin/Themes.php
index 7f615afa8..09fec9725 100644
--- a/Zotlabs/Module/Admin/Themes.php
+++ b/Zotlabs/Module/Admin/Themes.php
@@ -2,7 +2,8 @@
namespace Zotlabs\Module\Admin;
-use \Michelf\MarkdownExtra;
+use Michelf\MarkdownExtra;
+use Zotlabs\Lib\Config;
/**
* @brief Admin area theme settings.
@@ -37,7 +38,7 @@ class Themes {
* @return string with parsed HTML
*/
function get(){
- $allowed_themes_str = get_config('system', 'allowed_themes');
+ $allowed_themes_str = Config::Get('system', 'allowed_themes');
$allowed_themes_raw = explode(',', $allowed_themes_str);
$allowed_themes = array();
if(count($allowed_themes_raw))
@@ -100,7 +101,7 @@ class Themes {
info(sprintf('Theme %s disabled.', $theme));
}
- set_config('system', 'allowed_themes', $s);
+ Config::Set('system', 'allowed_themes', $s);
goaway(z_root() . '/admin/themes' );
}