Change some constants to avoid name collisions. MDL-12698

This commit is contained in:
stronk7
2007-12-31 01:03:37 +00:00
parent 5738a677f2
commit 6dbe0406b6
4 changed files with 44 additions and 44 deletions
+4 -4
View File
@@ -467,9 +467,9 @@ if ($INSTALL['stage'] == DOWNLOADLANG && $INSTALL['downloadlangpack']) {
/// Download and install component
if (($cd = new component_installer('http://download.moodle.org', 'lang16',
$INSTALL['language'].'.zip', 'languages.md5', 'lang')) && empty($errormsg)) {
$status = $cd->install(); //returns ERROR | UPTODATE | INSTALLED
$status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
switch ($status) {
case ERROR:
case COMPONENT_ERROR:
if ($cd->get_error() == 'remotedownloaderror') {
$a = new stdClass();
$a->url = 'http://download.moodle.org/lang16/'.$pack.'.zip';
@@ -479,8 +479,8 @@ if ($INSTALL['stage'] == DOWNLOADLANG && $INSTALL['downloadlangpack']) {
$downloaderror = get_string($cd->get_error(), 'error');
}
break;
case UPTODATE:
case INSTALLED:
case COMPONENT_UPTODATE:
case COMPONENT_INSTALLED:
$downloadsuccess = true;
break;
default: