uff
This commit is contained in:
10
index.php
10
index.php
@ -1,9 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
error_reporting(0);
|
||||
ini_set('display_errors', 0);
|
||||
|
||||
require_once __DIR__ . '/config.php';
|
||||
require_once __DIR__ . '/inc/db.inc.php';
|
||||
require_once __DIR__ . '/inc/tpl.class.php';
|
||||
require_once __DIR__ . '/inc/router.inc.php';
|
||||
|
||||
@ -15,7 +12,8 @@ if(!@$tpl->debug) {
|
||||
tpl::view($tpl->file,
|
||||
array_merge([
|
||||
'page' => $_page,
|
||||
'generated' => $generated
|
||||
'generated' => $generated,
|
||||
'basepath' => $config->env->basepath
|
||||
],
|
||||
gettype($tpl->data) !== 'string' ? $tpl->data : [])
|
||||
);
|
||||
|
Reference in New Issue
Block a user