From: skodak Date: Wed, 3 Sep 2008 07:48:19 +0000 (+0000) Subject: MDL-14326 fixed incorrect requires X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d2d9ba7d64e8cb1177683bc912d952e4904fd666;p=moodle.git MDL-14326 fixed incorrect requires --- diff --git a/admin/xmldb/actions/edit_table/edit_table.class.php b/admin/xmldb/actions/edit_table/edit_table.class.php index 90b4396ae9..a3b48cbdca 100644 --- a/admin/xmldb/actions/edit_table/edit_table.class.php +++ b/admin/xmldb/actions/edit_table/edit_table.class.php @@ -150,7 +150,7 @@ class edit_table extends XMLDBAction { $b .= '

'; $o .= $b; - require("$CFG->libdir/ddl/sql_generator.php"); + require_once("$CFG->libdir/ddl/sql_generator.php"); $reserved_words = sql_generator::getAllReservedWords(); /// Delete any 'changeme' field/key/index diff --git a/admin/xmldb/actions/edit_xml_file/edit_xml_file.class.php b/admin/xmldb/actions/edit_xml_file/edit_xml_file.class.php index 98e60cf1bc..74b6608bf9 100644 --- a/admin/xmldb/actions/edit_xml_file/edit_xml_file.class.php +++ b/admin/xmldb/actions/edit_xml_file/edit_xml_file.class.php @@ -147,7 +147,7 @@ class edit_xml_file extends XMLDBAction { /// Join all the reserved words into one big array /// Calculate list of available SQL generators - require("$CFG->libdir/ddl/sql_generator.php"); + require_once("$CFG->libdir/ddl/sql_generator.php"); $reserved_words = sql_generator::getAllReservedWords(); /// Add the tables list diff --git a/admin/xmldb/actions/view_reserved_words/view_reserved_words.class.php b/admin/xmldb/actions/view_reserved_words/view_reserved_words.class.php index c29f2d573b..149538db64 100644 --- a/admin/xmldb/actions/view_reserved_words/view_reserved_words.class.php +++ b/admin/xmldb/actions/view_reserved_words/view_reserved_words.class.php @@ -66,7 +66,7 @@ class view_reserved_words extends XMLDBAction { global $CFG, $XMLDB, $DB; /// Calculate list of available SQL generators - require("$CFG->libdir/ddl/sql_generator.php"); + require_once("$CFG->libdir/ddl/sql_generator.php"); $reserved_words = sql_generator::getAllReservedWords(); /// Now, calculate, looking into current DB (with AdoDB Metadata), which fields are