mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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:
parent
1c78065ad6
commit
67b853ff6b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue