From db4ecf4c7f82ce18017ef8fd1fd5eaf1f53362dd Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 2 Jul 2009 15:01:22 +0000 Subject: [PATCH] MDL-16438 dixed resource borking install - no code execution in lib.php files! --- mod/resource/db/install.php | 1 + mod/resource/lib.php | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/mod/resource/db/install.php b/mod/resource/db/install.php index 4a0abb1f5c..06408c46f0 100644 --- a/mod/resource/db/install.php +++ b/mod/resource/db/install.php @@ -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"); } diff --git a/mod/resource/lib.php b/mod/resource/lib.php index 40cfb7e6ad..704f592b62 100644 --- a/mod/resource/lib.php +++ b/mod/resource/lib.php @@ -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 * -- 2.39.5