From: stronk7 Date: Fri, 13 Oct 2006 23:49:48 +0000 (+0000) Subject: Now admin/index.php checks for proper prefixes (MDL-6230) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=103798878752a45a337413ce0b8f42961583f34c;p=moodle.git Now admin/index.php checks for proper prefixes (MDL-6230) Merged from MOODLE_17_STABLE --- diff --git a/admin/index.php b/admin/index.php index a22daa85f8..4570e516e6 100644 --- a/admin/index.php +++ b/admin/index.php @@ -52,6 +52,13 @@ error("The PHP server variable 'file_uploads' is not turned On - $documentationlink"); } + if (empty($CFG->prefix) && $CFG->dbtype != 'mysql') { //Enforce prefixes for everybody but mysql + error('$CFG->prefix can\'t be empty for your target DB (' . $CFG->dbtype . ')'); + } + + if ($CFG->dbtype == 'oci8po' && strlen($CFG->prefix) > 2) { //Max prefix length for Oracle is 2cc + error('$CFG->prefix maximum allowed length for Oracle DBs is 2cc.'); + } /// Check that config.php has been edited