From a5f9c3dc8f999d1060789618ce18ed0f6dac37e8 Mon Sep 17 00:00:00 2001 From: JoseluCross Date: Wed, 4 Oct 2017 19:16:24 +0200 Subject: [PATCH] to __DIR__ --- Source/src/app.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/src/app.php b/Source/src/app.php index 4047661..a6d3352 100644 --- a/Source/src/app.php +++ b/Source/src/app.php @@ -9,12 +9,12 @@ require 'dbToTable.php'; require 'users.php'; $path = array( - "html" => "assets/html/", - "css" => "assets/css/", - "js" => "assets/js/", - "img" => "assets/img/", + "html" => __DIR__."assets/html/", + "css" => __DIR__."assets/css/", + "js" => __DIR__."assets/js/", + "img" => __DIR__."assets/img/", ); -$supported = ksonParse('data/supported.kson'); +$supported = ksonParse(__DIR__.'data/supported.kson'); $loader = new Twig_Loader_Filesystem($path['html']); $twig = new Twig_Environment($loader); $user = array();