]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16438 dixed resource borking install - no code execution in lib.php files!
authorskodak <skodak>
Thu, 2 Jul 2009 15:01:22 +0000 (15:01 +0000)
committerskodak <skodak>
Thu, 2 Jul 2009 15:01:22 +0000 (15:01 +0000)
mod/resource/db/install.php
mod/resource/lib.php

index 4a0abb1f5c8cc301870b98a03534e164f1f5fc03..06408c46f0835a202c29904dd1dd41c41fb97741 100644 (file)
@@ -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");
 }
index 40cfb7e6adbb9f9e86ac6f0006adeb190120570e..704f592b628bd1f07fb8c1e01b79df134c60e0c6 100644 (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',
                                  '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
  *