]> git.mjollnir.org Git - moodle.git/commitdiff
Prepend database name to all table names to avoid ADOdb bug when there
authormoodler <moodler>
Thu, 2 Jan 2003 11:09:03 +0000 (11:09 +0000)
committermoodler <moodler>
Thu, 2 Jan 2003 11:09:03 +0000 (11:09 +0000)
is multiple database connections at once.

lib/setup.php

index 16a3dc8df553959377888d71a26519b891a02fe1..a7b9a1e4186154a50473728679484b9872092944 100644 (file)
@@ -26,6 +26,7 @@
     if (!isset($CFG->prefix)) {   // Just in case it isn't defined in config.php
         $CFG->prefix = "";
     }
+    $CFG->prefix = "$CFG->dbname.$CFG->prefix";