mirror of
https://github.com/friendica/friendica
synced 2025-04-28 13:04:23 +02:00
Bugfixing AutomaticInstallation test
This commit is contained in:
parent
bc73d4bd2b
commit
90e88d6c35
9 changed files with 37 additions and 25 deletions
|
@ -100,10 +100,10 @@ HELP;
|
|||
}
|
||||
}
|
||||
|
||||
$db_host = Config::getConfigValue('database', 'hostname');
|
||||
$db_user = Config::getConfigValue('database', 'username');
|
||||
$db_pass = Config::getConfigValue('database', 'password');
|
||||
$db_data = Config::getConfigValue('database', 'database');
|
||||
$db_host = $a->getConfig()->get('database', 'hostname');
|
||||
$db_user = $a->getConfig()->get('database', 'username');
|
||||
$db_pass = $a->getConfig()->get('database', 'password');
|
||||
$db_data = $a->getConfig()->get('database', 'database');
|
||||
} else {
|
||||
// Creating config file
|
||||
$this->out("Creating config file...\n");
|
||||
|
|
|
@ -124,9 +124,9 @@ HELP;
|
|||
$cat = $this->getArgument(0);
|
||||
Core\Config::load($cat);
|
||||
|
||||
if (Core\Config::getConfigValue($cat) !== null) {
|
||||
if ($a->getConfig()->get($cat) !== null) {
|
||||
$this->out("[{$cat}]");
|
||||
$catVal = Core\Config::getConfigValue($cat);
|
||||
$catVal = $a->getConfig()->get($cat);
|
||||
foreach ($catVal as $key => $value) {
|
||||
if (is_array($value)) {
|
||||
foreach ($value as $k => $v) {
|
||||
|
@ -148,7 +148,7 @@ HELP;
|
|||
$this->out('Warning: The JIT (Just In Time) Config adapter doesn\'t support loading the entire configuration, showing file config only');
|
||||
}
|
||||
|
||||
$config = Core\Config::getAll();
|
||||
$config = $a->getConfig()->getAll();
|
||||
foreach ($config as $cat => $section) {
|
||||
if (is_array($section)) {
|
||||
foreach ($section as $key => $value) {
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
namespace Friendica\Core\Console;
|
||||
|
||||
use Friendica\BaseObject;
|
||||
|
||||
/**
|
||||
* Tired of chasing typos and finding them after a commit.
|
||||
* Run this and quickly see if we've got any parse errors in our application files.
|
||||
|
@ -41,7 +43,7 @@ HELP;
|
|||
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
|
||||
}
|
||||
|
||||
$php_path = \Friendica\Core\Config::getConfigValue('config', 'php_path', 'php');
|
||||
$php_path = BaseObject::getApp()->getConfig()->get('config', 'php_path', 'php');
|
||||
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Directory: src');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue