Merge branch 'MDL-49008_lang_vanish' of https://github.com/andyjdavis/moodle

This commit is contained in:
Andrew Nicols 2015-02-24 16:15:35 +08:00
commit 5a3fe24392

View File

@ -326,7 +326,7 @@ class component_installer {
@remove_dir($destinationcomponent.'_old'); // Deleting a possible old version.
// Moving to a safe place.
$moveresult = rename($destinationcomponent, $destinationcomponent.'_old');
$moveresult = @rename($destinationcomponent, $destinationcomponent.'_old');
if (!$moveresult) {
debugging("Failed to rename {$destinationcomponent} to {$destinationcomponent}_old while installing a language");
}