Fixing installer
This commit is contained in:
parent
55999730e0
commit
a8e6a57e9b
5 changed files with 7 additions and 7 deletions
|
@ -79,7 +79,8 @@ HELP;
|
||||||
$installer = new Installer();
|
$installer = new Installer();
|
||||||
|
|
||||||
$configCache = $a->getConfigCache();
|
$configCache = $a->getConfigCache();
|
||||||
$installer->setUpCache($configCache, BasePath::create($a->getBasePath(), $_SERVER));
|
$basepath = new BasePath($a->getBasePath());
|
||||||
|
$installer->setUpCache($configCache, $basepath->getPath());
|
||||||
|
|
||||||
$this->out(" Complete!\n\n");
|
$this->out(" Complete!\n\n");
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ namespace Friendica\Core;
|
||||||
use DOMDocument;
|
use DOMDocument;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Friendica\Core\Config\Cache\ConfigCache;
|
use Friendica\Core\Config\Cache\ConfigCache;
|
||||||
|
use Friendica\Database\Database;
|
||||||
use Friendica\Database\DBStructure;
|
use Friendica\Database\DBStructure;
|
||||||
use Friendica\Factory\DBFactory;
|
|
||||||
use Friendica\Object\Image;
|
use Friendica\Object\Image;
|
||||||
use Friendica\Util\Logger\VoidLogger;
|
use Friendica\Util\Logger\VoidLogger;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
|
@ -600,7 +600,7 @@ class Installer
|
||||||
*/
|
*/
|
||||||
public function checkDB(ConfigCache $configCache, Profiler $profiler)
|
public function checkDB(ConfigCache $configCache, Profiler $profiler)
|
||||||
{
|
{
|
||||||
$database = DBFactory::init($configCache, $profiler, [], new VoidLogger());
|
$database = new Database($configCache, $profiler, new VoidLogger());
|
||||||
|
|
||||||
if ($database->connected()) {
|
if ($database->connected()) {
|
||||||
if (DBStructure::existsTable('user')) {
|
if (DBStructure::existsTable('user')) {
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Database
|
||||||
private $in_retrial = false;
|
private $in_retrial = false;
|
||||||
private $relation = [];
|
private $relation = [];
|
||||||
|
|
||||||
public function __construct(ConfigCache $configCache, Profiler $profiler, LoggerInterface $logger, array $server)
|
public function __construct(ConfigCache $configCache, Profiler $profiler, LoggerInterface $logger, array $server = [])
|
||||||
{
|
{
|
||||||
// We are storing these values for being able to perform a reconnect
|
// We are storing these values for being able to perform a reconnect
|
||||||
$this->configCache = $configCache;
|
$this->configCache = $configCache;
|
||||||
|
|
|
@ -67,7 +67,8 @@ class Install extends BaseModule
|
||||||
|
|
||||||
// get basic installation information and save them to the config cache
|
// get basic installation information and save them to the config cache
|
||||||
$configCache = $a->getConfigCache();
|
$configCache = $a->getConfigCache();
|
||||||
self::$installer->setUpCache($configCache, BasePath::create($a->getBasePath(), $_SERVER));
|
$basePath = new BasePath($a->getBasePath());
|
||||||
|
self::$installer->setUpCache($configCache, $basePath->getPath());
|
||||||
|
|
||||||
// We overwrite current theme css, because during install we may not have a working mod_rewrite
|
// We overwrite current theme css, because during install we may not have a working mod_rewrite
|
||||||
// so we may not have a css at all. Here we set a static css file for the install procedure pages
|
// so we may not have a css at all. Here we set a static css file for the install procedure pages
|
||||||
|
|
|
@ -9,8 +9,6 @@ use Friendica\App\Mode;
|
||||||
use Friendica\Core\Config\Cache\ConfigCache;
|
use Friendica\Core\Config\Cache\ConfigCache;
|
||||||
use Friendica\Database\Database;
|
use Friendica\Database\Database;
|
||||||
use Friendica\Factory\ConfigFactory;
|
use Friendica\Factory\ConfigFactory;
|
||||||
use Friendica\Factory\DBFactory;
|
|
||||||
use Friendica\Factory\ProfilerFactory;
|
|
||||||
use Friendica\Util\BasePath;
|
use Friendica\Util\BasePath;
|
||||||
use Friendica\Util\ConfigFileLoader;
|
use Friendica\Util\ConfigFileLoader;
|
||||||
use Friendica\Util\Profiler;
|
use Friendica\Util\Profiler;
|
||||||
|
|
Loading…
Reference in a new issue