mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removed deprecated Folder::findOrMake(), use find_or_make() instead
This commit is contained in:
parent
d1c5cd1454
commit
a46838c436
@ -33,18 +33,7 @@ class Folder extends File {
|
||||
|
||||
if(!$this->Name) $this->Name = _t('AssetAdmin.NEWFOLDER',"NewFolder");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $folderPath string Absolute or relative path to the file.
|
||||
* If path is relative, its interpreted relative to the "assets/" directory.
|
||||
* @return Folder
|
||||
* @deprecated in favor of the correct name find_or_make
|
||||
*/
|
||||
public static function findOrMake($folderPath) {
|
||||
Deprecation::notice('3.0', "Use Folder::find_or_make() instead.");
|
||||
return self::find_or_make($folderPath);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Find the given folder or create it both as {@link Folder} database records
|
||||
* and on the filesystem. If necessary, creates parent folders as well.
|
||||
|
Loading…
Reference in New Issue
Block a user