Skip to content

Commit

Permalink
Show error if the dbtype specified isn't supported by XMLDB
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 9, 2006
1 parent cd2acc4 commit 1c460b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ddllib.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@
require_once($CFG->libdir . '/xmldb/classes/XMLDBStatement.class.php');

/// Based on $CFG->dbtype, add the proper generator class
if (!file_exists($CFG->libdir . '/xmldb/classes/generators/' . $CFG->dbtype . '/' . $CFG->dbtype . '.class.php')) {
error ('DB Type: ' . $CFG->dbtype . ' not supported by XMLDDB');
}
require_once($CFG->libdir . '/xmldb/classes/generators/' . $CFG->dbtype . '/' . $CFG->dbtype . '.class.php');


/// Add other libraries
require_once($CFG->libdir . '/xmlize.php');


/**
* Add a new field to a table, or modify an existing one (if oldfield is defined).
* Warning: Please be careful on primary keys, as this function will eat auto_increments
Expand Down

0 comments on commit 1c460b0

Please sign in to comment.