mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 54204 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r54204 | ischommer | 2008-05-09 10:19:21 +1200 (Fri, 09 May 2008) | 1 line API CHANGE Made deleteDatabaseOnly() public (used in Filesystem::sync()) ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@55071 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
336709076d
commit
d344eef293
@ -178,7 +178,7 @@ class File extends DataObject {
|
|||||||
/**
|
/**
|
||||||
* Delete the database record (recursively for folders) without touching the filesystem
|
* Delete the database record (recursively for folders) without touching the filesystem
|
||||||
*/
|
*/
|
||||||
protected function deleteDatabaseOnly() {
|
public function deleteDatabaseOnly() {
|
||||||
if(is_numeric($this->ID)) DB::query("DELETE FROM File WHERE ID = $this->ID");
|
if(is_numeric($this->ID)) DB::query("DELETE FROM File WHERE ID = $this->ID");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user