mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-11 02:24:15 +02:00
alias now requires password to work. alias filename is without extension #47.
This commit is contained in:
@@ -2137,7 +2137,8 @@ class CImage
|
||||
/**
|
||||
* Create a hard link, as an alias, to the cached file.
|
||||
*
|
||||
* @param string $alias where to store the link.
|
||||
* @param string $alias where to store the link,
|
||||
* filename without extension.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
@@ -2148,6 +2149,8 @@ class CImage
|
||||
return $this;
|
||||
}
|
||||
|
||||
$alias = $alias . "." . $this->extension;
|
||||
|
||||
if (is_readable($alias)) {
|
||||
unlink($alias);
|
||||
}
|
||||
|
Reference in New Issue
Block a user