From: stronk7 Date: Sat, 30 Sep 2006 12:34:17 +0000 (+0000) Subject: One more use of getTableName() added. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=512a237ff6dc8da37b4e5a3b5c5a1ee71b003556;p=moodle.git One more use of getTableName() added. --- diff --git a/lib/xmldb/classes/generators/XMLDBGenerator.class.php b/lib/xmldb/classes/generators/XMLDBGenerator.class.php index 1dfecd4656..5593cd0ea1 100644 --- a/lib/xmldb/classes/generators/XMLDBGenerator.class.php +++ b/lib/xmldb/classes/generators/XMLDBGenerator.class.php @@ -560,7 +560,7 @@ class XMLDBgenerator { $fieldname = $this->getEncQuoted($xmldb_field->getName()); /// Build de alter sentence using the alter_column_sql template - $alter = str_replace('TABLENAME', $this->getEncQuoted($this->prefix . $xmldb_table->getName()), $this->alter_column_sql); + $alter = str_replace('TABLENAME', $this->getTableName($xmldb_table), $this->alter_column_sql); $alter = str_replace('COLUMNSPECS', $this->getFieldSQL($xmldb_field, $this->alter_column_skip_type, $this->alter_column_skip_default, $this->alter_column_skip_notnull), $alter);