[Fusionforge-commits] r15791 - in branches/Branch_5_2: . src/plugins/mediawiki/www

Roland Mas lolando at fusionforge.org
Thu Jun 14 16:25:06 CEST 2012


Author: lolando
Date: 2012-06-14 16:25:06 +0200 (Thu, 14 Jun 2012)
New Revision: 15791

Modified:
   branches/Branch_5_2/
   branches/Branch_5_2/src/plugins/mediawiki/www/DatabaseForgePgsql.php
Log:
Only use addIdentifierQuotes if it exists

Modified: branches/Branch_5_2/src/plugins/mediawiki/www/DatabaseForgePgsql.php
===================================================================
--- branches/Branch_5_2/src/plugins/mediawiki/www/DatabaseForgePgsql.php	2012-06-14 14:24:59 UTC (rev 15790)
+++ branches/Branch_5_2/src/plugins/mediawiki/www/DatabaseForgePgsql.php	2012-06-14 14:25:06 UTC (rev 15791)
@@ -53,7 +53,11 @@
 
 		global $wgDBmwschema;
 		if ($this->schemaExists($wgDBmwschema)) {
-			$safeschema = $this->addIdentifierQuotes($wgDBmwschema);
+			if (method_exists ($this,"addIdentifierQuotes")) {
+				$safeschema = $this->addIdentifierQuotes($wgDBmwschema);
+			} else {
+				$safeschema = $wgDBmwschema;
+			}
 			$this->doQuery("SET search_path TO $safeschema,public");
 		}
 




More information about the Fusionforge-commits mailing list