]> git.mjollnir.org Git - moodle.git/commitdiff
Deprecating modify_database(). It shows debugging info
authorstronk7 <stronk7>
Sat, 4 Nov 2006 16:22:49 +0000 (16:22 +0000)
committerstronk7 <stronk7>
Sat, 4 Nov 2006 16:22:49 +0000 (16:22 +0000)
if release > 2006101004 (Beta2 +01) MDL-5919

Merged from MOODLE_17_STABLE

lib/dmllib.php

index 84ce6a1126f2a1d60fb9a3718aedeca18b30ce14..ac62ef202ab633a73f16c7b466979df290802967 100644 (file)
@@ -168,6 +168,9 @@ function db_lowercase() {
  * Only tested with mysql dump files (mysqldump -p -d moodle)
  *
  * @uses $CFG
+ *
+ * @deprecated Moodle 1.7 use the new XMLDB stuff in lib/ddllib.php
+ *
  * @param string $sqlfile The path where a file with sql commands can be found on the server.
  * @param string $sqlstring If no path is supplied then a string with semicolon delimited sql
  * commands can be supplied in this argument.
@@ -177,6 +180,10 @@ function modify_database($sqlfile='', $sqlstring='') {
 
     global $CFG;
 
+    if ($CFG->version > 2006101004) {
+        debugging('Function modify_database() is deprecated. Replace it with the new XMLDB stuff.', DEBUG_DEVELOPER);
+    }
+
     $success = true;  // Let's be optimistic
 
     if (!empty($sqlfile)) {