From 21b859e93568ef24e486cfc6123482a07d3c9a00 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Tue, 24 Feb 2015 08:56:05 +0100 Subject: [PATCH] MDL-29008 lang: reintroduced error silencing to prevent unit test failures --- lib/componentlib.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/componentlib.class.php b/lib/componentlib.class.php index 07571961d5d..9e4dfdaa53c 100644 --- a/lib/componentlib.class.php +++ b/lib/componentlib.class.php @@ -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"); }