MDL-23984 make_upload_directory() cleanup - we now throw exceptions by default which should prevent a lot of strange problems

This commit is contained in:
Petr Skoda
2010-08-29 14:59:14 +00:00
parent c426ef3aa5
commit 71904f4d2b
8 changed files with 15 additions and 30 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ $CFG->lang = $options['lang'];
//download lang pack with optional notification
if ($CFG->lang != 'en') {
make_upload_directory('lang', false);
make_upload_directory('lang');
if ($cd = new component_installer('http://download.moodle.org', 'langpack/2.0', $CFG->lang.'.zip', 'languages.md5', 'lang')) {
if ($cd->install() == COMPONENT_ERROR) {
if ($cd->get_error() == 'remotedownloaderror') {