1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-23 09:23:09 +02:00

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:36:55 +08:00
parent 1c78065ad6
commit 67b853ff6b

@ -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;