Initialize css reference properly.
This commit is contained in:
parent
d7c7bbe579
commit
10357f78ff
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,7 +3,7 @@
|
|||||||
*.sqlite
|
*.sqlite
|
||||||
*.txt
|
*.txt
|
||||||
|
|
||||||
docker_compose.yml
|
docker-compose.yml
|
||||||
init_complete
|
init_complete
|
||||||
storage/upload/css
|
storage/upload/css
|
||||||
scratch
|
scratch
|
@ -41,7 +41,7 @@ class AdminController extends Controller {
|
|||||||
// Site settings
|
// Site settings
|
||||||
$siteTitle = trim($_POST['site_title']) ?? '';
|
$siteTitle = trim($_POST['site_title']) ?? '';
|
||||||
$siteDescription = trim($_POST['site_description']) ?? '';
|
$siteDescription = trim($_POST['site_description']) ?? '';
|
||||||
$baseUrl = trim($_POST['base_url'] ?? '');
|
$baseUrl = trim($_POST['base_url'] ?? '');
|
||||||
$basePath = trim($_POST['base_path'] ?? '/');
|
$basePath = trim($_POST['base_path'] ?? '/');
|
||||||
$itemsPerPage = (int) ($_POST['items_per_page'] ?? 25);
|
$itemsPerPage = (int) ($_POST['items_per_page'] ?? 25);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ class ConfigModel {
|
|||||||
public string $basePath = '';
|
public string $basePath = '';
|
||||||
public int $itemsPerPage = 25;
|
public int $itemsPerPage = 25;
|
||||||
public string $timezone = 'relative';
|
public string $timezone = 'relative';
|
||||||
public ?int $cssId;
|
public ?int $cssId = null;
|
||||||
|
|
||||||
public static function isFirstSetup(): bool {
|
public static function isFirstSetup(): bool {
|
||||||
return !file_exists(STORAGE_DIR . '/init_complete');
|
return !file_exists(STORAGE_DIR . '/init_complete');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user