Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
webdav error on smb workspace
Browse files Browse the repository at this point in the history
filemtime function get error on the root of smb workspace.
  • Loading branch information
c12simple committed Apr 28, 2015
1 parent 7a4a720 commit abeff1c
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -141,7 +141,14 @@ public function setName($name)
*/
public function getLastModified()
{
return filemtime($this->getUrl());
$preg = "/ajxp.smb:/i";
if(($this->path == "/") && (preg_match($preg,$this->getUrl()) === 1)){
// root have no last modify
return time();
}
else{
return filemtime($this->getUrl());
}
}


Expand Down

0 comments on commit abeff1c

Please sign in to comment.