Forgot a setting
Jeremy D

Jeremy D commited on 2011-10-10 18:53:14
Showing 1 changed files, with 12 additions and 3 deletions.

... ...
@@ -45,7 +45,6 @@ class tbg_coverter
45 45
 	protected $tbg_scope = 1;
46 46
 
47 47
 	// The database prefixes (including the database).
48
-	protected $mbt_db_prefix;
49 48
 	protected $tbg_db_prefix;
50 49
 
51 50
 	// The start timer.
... ...
@@ -142,10 +141,9 @@ class tbg_coverter
142 141
 	/**
143 142
 	 * Set the prefix that will be used prior to every reference of a table
144 143
 	 */
145
-	private function setDatabasePrefix()
144
+	private function setTBGDatabasePrefix()
146 145
 	{
147 146
 		$this->tbg_db_prefix = $this->tbg_db_name . '.' . $this->tbg_db_table_prefix;
148
-		$this->mbt_db_prefix = $this->mbt_db_name . '.' . $this->mbt_db_table_prefix;
149 147
 	}
150 148
 
151 149
 	/**
... ...
@@ -238,6 +236,17 @@ class tbg_coverter
238 236
 
239 237
 class mbt_to_tbg extends tbg_converter
240 238
 {
239
+	protected $mbt_db_prefix;
240
+
241
+	/**
242
+	 * Set the prefix that will be used prior to every reference of a table
243
+	 */
244
+	private function setDatabasePrefix()
245
+	{
246
+		$this->setTBGDatabasePrefix();
247
+		$this->mbt_db_prefix = $this->mbt_db_name . '.' . $this->mbt_db_table_prefix;
248
+	}
249
+
241 250
 	/**
242 251
 	 * Sets the list types in TBG to be like MBT
243 252
 	 * 
244 253