mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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) {
|
function setFilename($filename) {
|
||||||
$this->setField('Title',$filename);
|
$this->setField('Title',pathinfo($filename, PATHINFO_BASENAME));
|
||||||
parent::setFilename($filename);
|
parent::setFilename($filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user