From: stronk7 Date: Mon, 31 Dec 2007 01:10:54 +0000 (+0000) Subject: Missed this in my previous commit. MDL-12698 ; merged from 19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4070a1a4cefdaced68b7719404f06ee04814e669;p=moodle.git Missed this in my previous commit. MDL-12698 ; merged from 19_STABLE --- diff --git a/admin/environment.php b/admin/environment.php index 0003a25d24..74eb8f04c1 100644 --- a/admin/environment.php +++ b/admin/environment.php @@ -7,7 +7,7 @@ // Moodle - Modular Object-Oriented Dynamic Learning Environment // // http://moodle.com // // // -// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com // +// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com // // (C) 2001-3001 Eloy Lafuente (stronk7) http://contiento.com // // // // This program is free software; you can redistribute it and/or modify // @@ -65,9 +65,9 @@ if ($cd = new component_installer('http://download.moodle.org', 'environment', 'environment.zip')) { - $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/environment/environment.zip'; @@ -77,10 +77,10 @@ print_simple_box(get_string($cd->get_error(), 'error'), 'center', '', '', 5, 'errorbox'); } break; - case UPTODATE: + case COMPONENT_UPTODATE: print_simple_box(get_string($cd->get_error(), 'error'), 'center'); break; - case INSTALLED: + case COMPONENT_INSTALLED: print_simple_box(get_string('componentinstalled', 'admin'), 'center'); break; }