Replace custom path constants with laravel defined paths

This commit is contained in:
DariusIII
2023-03-28 16:56:23 +02:00
parent 4078b58a9f
commit 766a07b1e2
29 changed files with 33 additions and 95 deletions
@@ -133,7 +133,7 @@ class AdminSiteController extends BasePageController
$this->smarty->assign('lookup_reqids_ids', [0, 1, 2]);
$this->smarty->assign('lookup_reqids_names', ['Disabled', 'Lookup Request IDs', 'Lookup Request IDs Threaded']);
$this->smarty->assign('coversPath', NN_COVERS);
$this->smarty->assign('coversPath', storage_path('covers/'));
// return a list of audiobooks, mags, ebooks, technical and foreign books
$result = Category::query()->whereIn('id', [Category::MUSIC_AUDIOBOOK, Category::BOOKS_MAGAZINES, Category::BOOKS_TECHNICAL, Category::BOOKS_FOREIGN])->get(['id', 'title']);