From 64a799198a328e8a2d8936b34aef9d331edfa267 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcus=20M=C3=BCller?= <25648755+M-arcus@users.noreply.github.com> Date: Sun, 13 May 2018 12:50:53 +0200 Subject: [PATCH] [TASK] Automatic installation: Install theme --- src/Core/Console/AutomaticInstallation.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Core/Console/AutomaticInstallation.php b/src/Core/Console/AutomaticInstallation.php index 189bb9d19e..e0eea1f507 100644 --- a/src/Core/Console/AutomaticInstallation.php +++ b/src/Core/Console/AutomaticInstallation.php @@ -6,6 +6,7 @@ use Asika\SimpleConsole\Console; use dba; use Friendica\App; use Friendica\Core\Install; +use Friendica\Core\Theme; require_once 'mod/install.php'; require_once 'include/dba.php'; @@ -90,6 +91,15 @@ HELP; $this->out(" Complete!\n\n"); + // Install theme + $this->out("Installing theme\n"); + if (!empty($a->config['system']['theme'])) { + Theme::install($a->config['system']['theme']); + $this->out(" Complete\n\n"); + } else { + $this->out(" Theme setting is empty. Please check the file htconfig.php\n\n"); + } + // Copy config file $this->out("Saving config file...\n"); if ($config_file != '.htconfig.php' && !copy($config_file, '.htconfig.php')) { -- 2.39.5