mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: fixing naming of folders when created a new folder. The title now no longer includes the full path.
This commit is contained in:
parent
eaa6c6c49d
commit
6f1eab18c1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user