Project

General

Profile

« Previous | Next » 

Revision 1687

Added by darkviper over 12 years ago

Drop tables in installer fixed
Twig_Autoloader activated

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12
===============================================================================
13 13

  
14
07 May-2012 Build 1687 Werner v.d.Decken(DarkViper)
15
# Drop tables in installer fixed
16
+ Twig_Autoloader activated
14 17
07 May-2012 Build 1686 Werner v.d.Decken(DarkViper)
15 18
! some modifications concerning the new autoloader
16 19
+ Twig Template engine v.1.7.0
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1686');
54
if(!defined('REVISION')) define('REVISION', '1687');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/framework/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;
branches/2.8.x/wb/install/save.php
235 235
}
236 236

  
237 237
// Find out if the user wants to install tables and data
238
if(isset($_POST['install_tables']) AND $_POST['install_tables'] == 'true') {
239
	$install_tables = true;
240
} else {
241
	$install_tables = false;
242
}
238
$install_tables ((isset($_POST['install_tables']) AND $_POST['install_tables'] == 'true'));
243 239
// End database details code
244 240

  
245 241
// Begin website title code
......
360 356
	require_once(WB_PATH.'/framework/class.login.php');
361 357
// Check if we should install tables
362 358

  
363
	$sql = 'SHOW TABLES LIKE \''.str_replace('_', '\_', TABLE_PREFIX).'%';
359
	$sql = 'SHOW TABLES LIKE \''.str_replace('_', '\_', TABLE_PREFIX).'%\'';
364 360
	$aTables = array();
365 361
	if(($oTables = $database->query($sql))) {
366 362
		while($aTable = $oTables->fetchRow()) {

Also available in: Unified diff