From bef01d775dafddfada2756d87cd2913274519bff Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 30 Aug 2014 18:49:10 +0200 Subject: [PATCH] Fixed view.php (#38 #214 #196) --- view.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/view.php b/view.php index c610dd7..3f5f6df 100644 --- a/view.php +++ b/view.php @@ -24,10 +24,14 @@ if (isset($_GET['p'])&&$_GET['p']>0) { - require(__DIR__ . "/php/define.php"); + # Load required files + require(__DIR__ . '/php/define.php'); + require(__DIR__ . '/php/autoload.php'); + require(__DIR__ . '/php/modules/misc.php'); require(LYCHEE_CONFIG_FILE); - require(LYCHEE . "php/autoload.php"); - require(LYCHEE . "php/modules/misc.php"); + + # Define the table prefix + defineTablePrefix($dbTablePrefix); $database = Database::connect($dbHost, $dbUser, $dbPassword, $dbName);