]> git.mxchange.org Git - friendica.git/commitdiff
[TASK] Automatic installation: Install theme
authorMarcus Müller <25648755+M-arcus@users.noreply.github.com>
Sun, 13 May 2018 10:50:53 +0000 (12:50 +0200)
committerGitHub <noreply@github.com>
Sun, 13 May 2018 10:50:53 +0000 (12:50 +0200)
src/Core/Console/AutomaticInstallation.php

index 189bb9d19e970739146f575ad19aa6a802834256..e0eea1f507abf474a6f2d0fecbbd0a73b6ad2d04 100644 (file)
@@ -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')) {