From 2d1403394040d8f23ed446cdb6371894527fd1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Tue, 11 May 2021 10:19:02 +0200 Subject: [PATCH] Update config.php --- assets/php/config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/php/config.php b/assets/php/config.php index f758303..df2dae9 100644 --- a/assets/php/config.php +++ b/assets/php/config.php @@ -11,11 +11,13 @@ * Configuration parameters used to generate URLs and file paths in the application */ define('ROUTE_APP', '/'); //Change if it´s necessary. + define('RAIZ_APP', __DIR__); /** * Image files directory. */ - define('FILMS_DIR', ROUTE_APP.'img/films'); + define('FILMS_DIR', dirname(RAIZ_APP).'img/films'); + define('FILMS_DIR_PROTECTED', RAIZ_APP.'img/films'); /** * Utf-8 support settings, location (language and country) and time zone.