Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1612)
+++ branches/2.8.x/CHANGELOG	(revision 1613)
@@ -11,6 +11,8 @@
 ! = Update/Change
 ===============================================================================
 
+16 Feb-2012 Build 1613 Werner v.d.Decken(DarkViper)
+# little fixes in classs database and add new readonly property DbName
 11 Feb-2012 Build 1612 Werner v.d.Decken(DarkViper)
 ! Number of version and revision updated in branch.
 11 Feb-2012 Build 1611 Werner v.d.Decken(DarkViper)
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1612)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1613)
@@ -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', '1612');
+if(!defined('REVISION')) define('REVISION', '1613');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/framework/class.database.php
===================================================================
--- branches/2.8.x/wb/framework/class.database.php	(revision 1612)
+++ branches/2.8.x/wb/framework/class.database.php	(revision 1613)
@@ -36,7 +36,7 @@
 class database {
 
 	private $db_handle  = null; // readonly from outside
-
+	private $db_name    = '';
 	private $connected  = false;
 
 	private $error      = '';
@@ -65,6 +65,7 @@
 				$this->connected = false;
 				$this->error = mysql_error();
 			} else {
+				$this->db_name = DB_NAME;
 				$this->connected = true;
 			}
 		}
@@ -127,17 +128,28 @@
 		return $this->error;
 	}
 
-/*
- * default Getter
+/**
+ * default Getter for some properties
+ * @param string $sPropertyName
+ * @return mixed NULL on error or missing property
  */
-	public function __get($var_name)
+	public function __get($sPropertyName)
 	{
-		if($var_name == 'db_handle')
-		{
-			return $this->db_handle;
-		}
-		return null;
-	}
+		switch ($sPropertyName):
+			case 'db_handle':
+			case 'DbHandle':
+				$retval = $this->db_handle;
+				break;
+			case 'db_name':
+			case 'DbName':
+				$retval = $this->db_name;
+				break;
+			default:
+				$retval = null;
+				break;
+		endswitch;
+		return $retval;
+	} // __get()
 
 /*
  * @param string $table_name: full name of the table (incl. TABLE_PREFIX)
@@ -334,7 +346,7 @@
 		$retVal = false;
 		$mysqlVersion = mysql_get_server_info($this->db_handle);
 		$engineValue = (version_compare($mysqlVersion, '5.0') < 0) ? 'Type' : 'Engine';
-		$sql = "SHOW TABLE STATUS FROM " . DB_NAME . " LIKE '" . $table . "'";
+		$sql = "SHOW TABLE STATUS FROM " . $this->db_name . " LIKE '" . $table . "'";
 		if(($result = $this->query($sql))) {
 			if(($row = $result->fetchRow(MYSQL_ASSOC))) {
 				$retVal = $row[$engineValue];
