Fix gallery image view
This commit is contained in:
parent
ddfb9de147
commit
3b9fac8f81
|
@ -93,9 +93,7 @@ class TileSingle extends TileBase {
|
|||
}
|
||||
|
||||
public function get($extra = '') {
|
||||
// !HACK! file path needs to be encoded twice because files app decode twice url, so any special chars like + or & in filename
|
||||
// !HACK! will result in failing of opening them
|
||||
return '<a rel="images" title="'.htmlentities(basename($this->getPath())).'" href="'.\OCP\Util::linkTo('gallery','ajax/viewImage.php').'?img='.urlencode(urlencode($this->getPath())).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'?filepath='.urlencode($this->getPath()).'" '.$extra.'></a>';
|
||||
return '<a rel="images" title="'.htmlentities(basename($this->getPath())).'" href="'.\OCP\Util::linkTo('gallery','ajax/viewImage.php').'?img='.urlencode($this->getPath()).'"><img rel="images" src="'.\OCP\Util::linkTo('gallery', 'ajax/thumbnail.php').'?filepath='.urlencode($this->getPath()).'" '.$extra.'></a>';
|
||||
}
|
||||
|
||||
public function getMiniatureSrc() {
|
||||
|
|
Loading…
Reference in New Issue