]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-18848, add default module to curl class"
authordongsheng <dongsheng>
Mon, 20 Apr 2009 09:21:28 +0000 (09:21 +0000)
committerdongsheng <dongsheng>
Mon, 20 Apr 2009 09:21:28 +0000 (09:21 +0000)
lib/filelib.php

index d93c255d49058d92d8bbacd37765e47566bbc6a9..911a85637440122317e261ae17f3f6a88218cd60 100644 (file)
@@ -2033,7 +2033,7 @@ class curl_cache {
      * @param string @module, which module is using curl_cache
      *
      */
-    function __construct($module){
+    function __construct($module = 'repository'){
         global $CFG;
         if (!empty($module)) {
             $this->dir = $CFG->dataroot.'/cache/'.$module.'/';