Changeset 9287efa097e9bcfcba4e7a1f59c4782f94e0eac2

Show
Ignore:
Timestamp:
02/04/12 10:57:21 (4 months ago)
Author:
Xemle <xemle@phtagr.org>
Children:
52c9172778e5d153c7db8d0957fe720d413134cb
Parents:
33295e2f6bf20f39b0391fe58f4b96f0d18e8667
git-committer:
Xemle <xemle@phtagr.org> / 2012-02-04T10:57:21Z+0100
Message:

Fix Webdav route

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Config/routes.php

    ra42ace5 r9287efa  
    2727 */ 
    2828        Router::connect('/', array('controller' => 'home', 'action' => 'index')); 
     29        Router::connect('/webdav/*', array('controller' => 'webdav', 'action' => 'index')); 
    2930/** 
    3031 * ...and connect the rest of 'Pages' controller's urls. 
  • Controller/Component/WebdavServerComponent.php

    rb243ec7 r9287efa  
    6363    // set current controller URL 
    6464    $this->setDavRoot($controller->webroot.$controller->name); 
     65    $this->controller->loadComponent(array('FileManager', 'FilterManager'), &$this); 
    6566    $this->FilterManager->initialize(&$controller); 
    6667  } 
     
    722723    $this->_putFsPath=$fspath; 
    723724    $fp=fopen($fspath, "w"); 
    724     if ($fp===false) 
     725    if ($fp===false) { 
    725726      Logger::err("fopen('$fspath', 'w')===false"); 
     727    } 
    726728 
    727729    return $fp;