Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c78065
)
MDL-45619 repository: Don't allow repository_recent to be uninstalled
author
David Monllao
<davidm@moodle.com>
Wed, 25 Mar 2015 01:36:55 +0000
(09:36 +0800)
committer
David Monllao
<davidm@moodle.com>
Wed, 25 Mar 2015 01:39:12 +0000
(09:39 +0800)
We have tests that depends on it and it
is a simple repo that can just be disabled.
lib/classes/plugininfo/repository.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/classes/plugininfo/repository.php
b/lib/classes/plugininfo/repository.php
index
a45cd6d
..
861b24d
100644
(file)
--- 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;