Change some constants to avoid name collisions. MDL-12698 ; Merged from MOODLE_19_STABLE

This commit is contained in:
stronk7
2007-12-31 01:07:49 +00:00
parent ee3501f124
commit f85236dc76
4 changed files with 44 additions and 44 deletions
+2 -2
View File
@@ -4367,9 +4367,9 @@ function upgrade_language_pack($lang='') {
require_once($CFG->libdir.'/componentlib.class.php');
if ($cd = new component_installer('http://download.moodle.org', 'lang16', $lang.'.zip', 'languages.md5', 'lang')) {
$status = $cd->install(); //returns ERROR | UPTODATE | INSTALLED
$status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
if ($status == INSTALLED) {
if ($status == COMPONENT_INSTALLED) {
debugging('Downloading successful: '.$lang);
@unlink($CFG->dataroot.'/cache/languages');
return true;