use dba;
use Friendica\App;
use Friendica\Core\Install;
+use Friendica\Core\Theme;
require_once 'mod/install.php';
require_once 'include/dba.php';
$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')) {