mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:40:17 +00:00
[TASK] Automatic installation: Install theme
This commit is contained in:
parent
7997df877d
commit
64a799198a
1 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,7 @@ use Asika\SimpleConsole\Console;
|
||||||
use dba;
|
use dba;
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\Core\Install;
|
use Friendica\Core\Install;
|
||||||
|
use Friendica\Core\Theme;
|
||||||
|
|
||||||
require_once 'mod/install.php';
|
require_once 'mod/install.php';
|
||||||
require_once 'include/dba.php';
|
require_once 'include/dba.php';
|
||||||
|
@ -90,6 +91,15 @@ HELP;
|
||||||
|
|
||||||
$this->out(" Complete!\n\n");
|
$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
|
// Copy config file
|
||||||
$this->out("Saving config file...\n");
|
$this->out("Saving config file...\n");
|
||||||
if ($config_file != '.htconfig.php' && !copy($config_file, '.htconfig.php')) {
|
if ($config_file != '.htconfig.php' && !copy($config_file, '.htconfig.php')) {
|
||||||
|
|
Loading…
Reference in a new issue