mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-16438 dixed resource borking install - no code execution in lib.php files!
This commit is contained in:
parent
66491cf130
commit
db4ecf4c7f
2 changed files with 1 additions and 4 deletions
|
@ -14,4 +14,5 @@ function xmldb_resource_install() {
|
|||
update_log_display_entry('resource', 'update', 'resource', 'name');
|
||||
update_log_display_entry('resource', 'add', 'resource', 'name');
|
||||
|
||||
set_config("resource_hide_repository", "1");
|
||||
}
|
||||
|
|
|
@ -35,10 +35,6 @@ global $RESOURCE_WINDOW_OPTIONS; // must be global because it might be included
|
|||
$RESOURCE_WINDOW_OPTIONS = array('resizable', 'scrollbars', 'directories', 'location',
|
||||
'menubar', 'toolbar', 'status', 'width', 'height');
|
||||
|
||||
if (!isset($CFG->resource_hide_repository)) {
|
||||
set_config("resource_hide_repository", "1");
|
||||
}
|
||||
|
||||
/**
|
||||
* resource_base is the base class for resource types
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue