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
@@ -54,7 +54,7 @@ class AdminGameController extends BasePageController
switch ($action) {
case 'submit':
$coverLoc = NN_COVERS.'games/'.$id.'.jpg';
$coverLoc = storage_path('covers/games/').$id.'.jpg';
if ($_FILES['cover']['size'] > 0) {
$tmpName = $_FILES['cover']['tmp_name'];