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.
This commit is contained in:
David Monllao
2015-03-25 09:40:26 +08:00
parent bcecb03bbf
commit e2ac2c6692
+1 -1
View File
@@ -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;