mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixes to CLI scripts
This commit is contained in:
2
init.php
2
init.php
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'src/core.php';
|
require_once 'src/core.php';
|
||||||
$config = configFactory();
|
$config = \Chibi\Registry::getConfig();
|
||||||
$fontsPath = $config->main->mediaPath . DS . 'fonts' . DS;
|
$fontsPath = $config->main->mediaPath . DS . 'fonts' . DS;
|
||||||
$libPath = $config->main->mediaPath . DS . 'lib' . DS;
|
$libPath = $config->main->mediaPath . DS . 'lib' . DS;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'src/core.php';
|
require_once 'src/core.php';
|
||||||
$config = configFactory();
|
$config = \Chibi\Registry::getConfig();
|
||||||
|
|
||||||
$dbVersion = Model_Property::get('db-version');
|
$dbVersion = Model_Property::get('db-version');
|
||||||
printf('DB version = %d' . PHP_EOL, $dbVersion);
|
printf('DB version = %d' . PHP_EOL, $dbVersion);
|
||||||
|
Reference in New Issue
Block a user