Moved urlExist to file helper class.
This commit is contained in:
@@ -627,6 +627,22 @@ trait Utilities
|
||||
return FileHelper::getPath($type, $target, $fileType, $key, $default, $createIfNotSet);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if file exist
|
||||
*
|
||||
* @param string $path The url/path to check
|
||||
*
|
||||
* @return bool If exist true
|
||||
*
|
||||
* @since 3.0.9
|
||||
*
|
||||
* @deprecated 4.0 - Use FileHelper::exists($path);
|
||||
*/
|
||||
public static function urlExists($path)
|
||||
{
|
||||
return FileHelper::exists($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the component option
|
||||
*
|
||||
|
Reference in New Issue
Block a user