openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 94b46962bc45527b2a558179edf52209fb2c7a30
parent 62c9e62dcfd27e87accc7cbaa63f60ef589f93ed
Author: Jan Dankert <devnull@localhost>
Date:   Mon,  8 Apr 2013 19:30:06 +0200

Patch von Tobias. Klären, wieso die Konfiguration in der WebdavAction neu geladen werden muss.

Diffstat:
action/ElementAction.class.php | 7++++++-
action/WebdavAction.class.php | 7++++++-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/action/ElementAction.class.php b/action/ElementAction.class.php @@ -520,7 +520,12 @@ class ElementAction extends Action if ( !$o->isPage && !$o->isFile && !$o->isLink ) continue 2; break; - + //Change tobias + case 'insert': + if ( !$o->isFolder && !$o->isPage && !$o->isFile && !$o->isLink ) + continue 2; + break; + //Change tobias end default: continue 2; } diff --git a/action/WebdavAction.class.php b/action/WebdavAction.class.php @@ -70,7 +70,12 @@ class WebdavAction extends Action else set_error_handler('webdavErrorHandler'); - global $conf; + + //Changed tobias + //global $conf; + $prefs = new Preferences(); + $conf = $prefs->load(); + //End changed Tobias $this->webdav_conf = $conf['webdav']; if ( $this->webdav_conf['compliant_to_redmond'] )