1
0
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:
Mikael Roos
2015-01-17 19:15:18 +01:00
parent f87dc2967f
commit 4fae208c4c
4 changed files with 31 additions and 23 deletions

View File

@@ -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);
}