mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
fix: resolve broken lib/ require paths in admin and normalise modern-normalize to .min.css
This commit is contained in:
6
TODO.md
6
TODO.md
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user