fix: resolve broken lib/ require paths in admin and normalise modern-normalize to .min.css

This commit is contained in:
Pontoporeia
2026-02-24 23:19:18 +01:00
parent da53d56744
commit d30153871f
13 changed files with 21 additions and 21 deletions

View File

@@ -14,19 +14,19 @@ third-party dependencies. The tasks below are ordered from critical to nice-to-h
## Critical Bugs (broken at runtime)
- [ ] **Fix broken `lib/` require paths in all admin pages**
- [x] **Fix broken `lib/` require paths in all admin pages**
Admin pages (`add.php`, `edit.php`, `import.php`, `thanks.php`, `login.php`,
`logout.php`, `actions/formulaire.php`, `actions/publish.php`) all require
`../../lib/AdminAuth.php` and `../../lib/Database.php`, but the `lib/` directory
**does not exist**. The actual files live in `src/`. This means the entire admin
panel is broken. Fix: change all `lib/` references to `src/`.
- [ ] **Fix missing `modern-normalize.css` (no `.min` variant)**
- [x] **Fix missing `modern-normalize.css` (no `.min` variant)**
`templates/header.php`, `templates/head.php`, and `public/search.php` reference
`assets/modern-normalize.css` (without `.min`), but only `modern-normalize.min.css`
exists. Either rename the file or update the references to be consistent.
- [ ] **Fix `admin/index.php` inconsistency**
- [x] **Fix `admin/index.php` inconsistency**
`admin/index.php` uses `src/AdminAuth.php` (correct) but then
`../../lib/Database.php` (broken). It should load from `src/` consistently.