MDL-29008 lang: reintroduced error silencing to prevent unit test failures

This commit is contained in:
Andrew Davis
2015-02-24 16:16:20 +08:00
committed by Andrew Nicols
parent b34fc1800a
commit c49003263e
+1 -1
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");
}