From: stronk7 Date: Mon, 4 Sep 2006 22:40:42 +0000 (+0000) Subject: Mark two functions as deprecated because that's standard now. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=95f610334e0c7727f4740de52281244404c2d341;p=moodle.git Mark two functions as deprecated because that's standard now. --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 21322d3cd1..6d00770ad0 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -117,36 +117,18 @@ function rollback_sql() { /** * returns db specific uppercase function + * @deprecated Moodle 1.7 because all the RDBMS use upper() */ function db_uppercase() { - global $CFG; - switch (strtolower($CFG->dbtype)) { - - case "postgres7": - return "upper"; - - case "mysql": - default: - return "ucase"; - - } + return "upper"; } /** * returns db specific lowercase function + * @deprecated Moodle 1.7 because all the RDBMS use lower() */ function db_lowercase() { - global $CFG; - switch (strtolower($CFG->dbtype)) { - - case "postgres7": - return "lower"; - - case "mysql": - default: - return "lcase"; - - } + return "lower"; } /**