From b2b3fd82cdc78751df7ebba17f5b9a799bf6a082 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 22 Oct 2008 02:50:32 +0000 Subject: [PATCH] "MDL-16908, remove search and logout button" --- repository/webdav/repository.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repository/webdav/repository.class.php b/repository/webdav/repository.class.php index adb44364e1..2ad86383da 100644 --- a/repository/webdav/repository.class.php +++ b/repository/webdav/repository.class.php @@ -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)) { -- 2.39.5