Fixed view.php (#38 #214 #196)

This commit is contained in:
Tobias Reich 2014-08-30 18:49:10 +02:00
parent 4a0750e34f
commit bef01d775d

View File

@ -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);