Commits

Jacob Moen  committed 99557e6

Handle table prefix, both when it's set and when it's not set.

  • Participants
  • Parent commits 8366fa1

Comments (0)

Files changed (7)

File protected/modules/wiki/WikiModule.php

 		// this method is called when the module is being created
 		// you may place code here to customize the module or the application
 
+        if(! isset(Yii::app()->getDb()->tablePrefix)) { Yii::app()->getDb()->tablePrefix = ''; };
+
 		Yii::setPathOfAlias('Muster', Yii::getPathOfAlias('wiki.vendors.simplewiki1_1.muster'));
 
 		// import the module-level models and components

File protected/modules/wiki/models/Wikicategory.php

 	 */
 	public function tableName()
 	{
-		return 'wikicategory';
+		return '{{wikicategory}}';
 	}
 
 	/**

File protected/modules/wiki/models/Wikilink.php

 	 */
 	public function tableName()
 	{
-		return 'wikilink';
+		return '{{wikilink}}';
 	}
 
 	/**

File protected/modules/wiki/models/Wikipage.php

 	 */
 	public function tableName()
 	{
-		return 'wikipage';
+		return '{{wikipage}}';
 	}
 
 	public function behaviors()

File protected/modules/wiki/models/Wikipagerevision.php

 	 */
 	public function tableName()
 	{
-		return 'wikipagerevision';
+		return '{{wikipagerevision}}';
 	}
 
 	public function behaviors()

File protected/modules/wiki/models/Wikitag.php

 	 */
 	public function tableName()
 	{
-		return 'wikitag';
+		return '{{wikitag}}';
 	}
 
 	/**

File protected/modules/wiki/models/Wikiuser.php

 	 */
 	public function tableName()
 	{
-		return 'wikiuser';
+		return '{{wikiuser}}';
 	}
 
 	/**