"MDL-16908, remove search and logout button"
authordongsheng <dongsheng>
Wed, 22 Oct 2008 02:50:32 +0000 (02:50 +0000)
committerdongsheng <dongsheng>
Wed, 22 Oct 2008 02:50:32 +0000 (02:50 +0000)
repository/webdav/repository.class.php

index adb44364e122510cae9f91202342c65053d132a2..2ad86383da8a74ddae3a60454ad9c77408b6cc0a 100644 (file)
@@ -50,7 +50,7 @@ class repository_webdav extends repository {
         $buffer = '';
         $this->wd->open();
         $this->wd->get($url, $buffer);
-        $fp = fopen($dir.$file, 'w');
+        $fp = fopen($dir.$file, 'wb');
         fwrite($fp, $buffer);
         return $dir.$file;
     }
@@ -63,6 +63,8 @@ class repository_webdav extends repository {
         $ret  = array();
         $ret['dynload'] = true;
         $ret['list'] = array();
+        $ret['nosearch'] = true;
+        $ret['nologin'] = true;
         $ret['path'] = array(array('name'=>'Root', 'path'=>0));
         $this->wd->open();
         if (empty($path)) {