From e2ac2c66920bcdba7712e2efdcb17b7e7e1f5256 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Wed, 25 Mar 2015 09:36:55 +0800 Subject: [PATCH] MDL-45619 repository: Don't allow repository_recent to be uninstalled We have tests that depends on it and it is a simple repo that can just be disabled. --- lib/classes/plugininfo/repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/plugininfo/repository.php b/lib/classes/plugininfo/repository.php index a45cd6d1e86..861b24d2547 100644 --- a/lib/classes/plugininfo/repository.php +++ b/lib/classes/plugininfo/repository.php @@ -73,7 +73,7 @@ class repository extends base { * @return boolean */ public function is_uninstall_allowed() { - if ($this->name === 'upload' || $this->name === 'coursefiles' || $this->name === 'user') { + if ($this->name === 'upload' || $this->name === 'coursefiles' || $this->name === 'user' || $this->name === 'recent') { return false; } else { return true;