Skip to content

Commit

Permalink
Removed deprecated Folder::findOrMake(), use find_or_make() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Harvey committed Nov 16, 2012
1 parent d1c5cd1 commit a46838c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions filesystem/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,7 @@ public function populateDefaults() {

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.
Expand Down

0 comments on commit a46838c

Please sign in to comment.