Initialize css reference properly.

This commit is contained in:
Greg Sarjeant 2025-06-10 20:26:11 -04:00
parent d7c7bbe579
commit 10357f78ff
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -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

View File

@ -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);

View File

@ -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');