MDL-16438 dixed resource borking install - no code execution in lib.php files!

This commit is contained in:
skodak 2009-07-02 15:01:22 +00:00
parent 66491cf130
commit db4ecf4c7f
2 changed files with 1 additions and 4 deletions

View file

@ -14,4 +14,5 @@ function xmldb_resource_install() {
update_log_display_entry('resource', 'update', 'resource', 'name'); update_log_display_entry('resource', 'update', 'resource', 'name');
update_log_display_entry('resource', 'add', 'resource', 'name'); update_log_display_entry('resource', 'add', 'resource', 'name');
set_config("resource_hide_repository", "1");
} }

View file

@ -35,10 +35,6 @@ global $RESOURCE_WINDOW_OPTIONS; // must be global because it might be included
$RESOURCE_WINDOW_OPTIONS = array('resizable', 'scrollbars', 'directories', 'location', $RESOURCE_WINDOW_OPTIONS = array('resizable', 'scrollbars', 'directories', 'location',
'menubar', 'toolbar', 'status', 'width', 'height'); '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 * resource_base is the base class for resource types
* *