Project

General

Profile

« Previous | Next » 

Revision 1687

Added by darkviper over 12 years ago

Drop tables in installer fixed
Twig_Autoloader activated

View differences:

initialize.php
71 71
	$starttime = array_sum(explode(" ",microtime()));
72 72
	SetInstallPathConstants();
73 73
	SanitizeHttpReferer(WB_URL); // sanitize $_SERVER['HTTP_REFERER']
74
	if(!class_exists('WbAutoloader', false)){ include(dirname(__FILE__.'/WbAutoloader.php')); }
75
	WbAutoloader::doRegister(array(ADMIN_DIRECTORY => 'a', 'modules' => 'm'));
74
	if(!class_exists('WbAutoloader', false)){ include(dirname(__FILE__).'/WbAutoloader.php'); }
75
	WbAutoloader::doRegister(array(ADMIN_DIRECTORY=>'a', 'modules'=>'m'));
76
	require_once dirname(dirname(__FILE__)).'/include/Twig/Autoloader.php';
77
	Twig_Autoloader::register();
76 78
	date_default_timezone_set('UTC');
77 79
	// Create database class
78 80
	$sSqlUrl = DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_NAME;

Also available in: Unified diff