BUGFIX: fixing naming of folders when created a new folder. The title now no longer includes the full path.

This commit is contained in:
Julian Seidenberg 2011-03-30 12:05:05 +13:00 committed by Ingo Schommer
parent eaa6c6c49d
commit 6f1eab18c1

View File

@ -319,7 +319,7 @@ class Folder extends File {
}
function setFilename($filename) {
$this->setField('Title',$filename);
$this->setField('Title',pathinfo($filename, PATHINFO_BASENAME));
parent::setFilename($filename);
}