Remove option to set covers path in database, it is hardcoded now to resources/covers/

This commit is contained in:
DariusIII
2020-03-22 22:12:07 +01:00
parent 948658bf1d
commit 1e7244e5bc
40 changed files with 55 additions and 151 deletions
@@ -57,7 +57,7 @@ class GameController extends BasePageController
switch ($action) {
case 'submit':
$coverLoc = NN_COVERS.'games/'.$id.'.jpg';
$coverLoc = resource_path().'/covers/'.'games/'.$id.'.jpg';
if ($_FILES['cover']['size'] > 0) {
$tmpName = $_FILES['cover']['tmp_name'];