Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1686)
+++ branches/2.8.x/CHANGELOG	(revision 1687)
@@ -11,6 +11,9 @@
 ! = Update/Change
 ===============================================================================
 
+07 May-2012 Build 1687 Werner v.d.Decken(DarkViper)
+# Drop tables in installer fixed
++ Twig_Autoloader activated
 07 May-2012 Build 1686 Werner v.d.Decken(DarkViper)
 ! some modifications concerning the new autoloader
 + Twig Template engine v.1.7.0
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1686)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1687)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.3');
-if(!defined('REVISION')) define('REVISION', '1686');
+if(!defined('REVISION')) define('REVISION', '1687');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/framework/initialize.php
===================================================================
--- branches/2.8.x/wb/framework/initialize.php	(revision 1686)
+++ branches/2.8.x/wb/framework/initialize.php	(revision 1687)
@@ -71,8 +71,10 @@
 	$starttime = array_sum(explode(" ",microtime()));
 	SetInstallPathConstants();
 	SanitizeHttpReferer(WB_URL); // sanitize $_SERVER['HTTP_REFERER']
-	if(!class_exists('WbAutoloader', false)){ include(dirname(__FILE__.'/WbAutoloader.php')); }
-	WbAutoloader::doRegister(array(ADMIN_DIRECTORY => 'a', 'modules' => 'm'));
+	if(!class_exists('WbAutoloader', false)){ include(dirname(__FILE__).'/WbAutoloader.php'); }
+	WbAutoloader::doRegister(array(ADMIN_DIRECTORY=>'a', 'modules'=>'m'));
+	require_once dirname(dirname(__FILE__)).'/include/Twig/Autoloader.php';
+	Twig_Autoloader::register();
 	date_default_timezone_set('UTC');
 	// Create database class
 	$sSqlUrl = DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_NAME;
Index: branches/2.8.x/wb/install/save.php
===================================================================
--- branches/2.8.x/wb/install/save.php	(revision 1686)
+++ branches/2.8.x/wb/install/save.php	(revision 1687)
@@ -235,11 +235,7 @@
 }
 
 // Find out if the user wants to install tables and data
-if(isset($_POST['install_tables']) AND $_POST['install_tables'] == 'true') {
-	$install_tables = true;
-} else {
-	$install_tables = false;
-}
+$install_tables ((isset($_POST['install_tables']) AND $_POST['install_tables'] == 'true'));
 // End database details code
 
 // Begin website title code
@@ -360,7 +356,7 @@
 	require_once(WB_PATH.'/framework/class.login.php');
 // Check if we should install tables
 
-	$sql = 'SHOW TABLES LIKE \''.str_replace('_', '\_', TABLE_PREFIX).'%';
+	$sql = 'SHOW TABLES LIKE \''.str_replace('_', '\_', TABLE_PREFIX).'%\'';
 	$aTables = array();
 	if(($oTables = $database->query($sql))) {
 		while($aTable = $oTables->fetchRow()) {
