this should fix custom image links
This commit is contained in:
parent
899bc22538
commit
a1cc88cade
@ -251,11 +251,11 @@ class Image {
|
|||||||
*/
|
*/
|
||||||
public function get_image_link() {
|
public function get_image_link() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
$image_ilink = $config->get_string('image_ilink'); // store a copy for speed.
|
$image_ilink = $config->get_string('image_ilink'); // store a copy for speed.
|
||||||
|
|
||||||
if( !empty($image_ilink) ) { /* empty is faster than strlen */
|
if( !empty($image_ilink) ) { /* empty is faster than strlen */
|
||||||
return $this->parse_link_template($image_ilink);
|
return $this->parse_link_template(make_link($image_ilink));
|
||||||
}
|
}
|
||||||
else if($config->get_bool('nice_urls', false)) {
|
else if($config->get_bool('nice_urls', false)) {
|
||||||
return $this->parse_link_template(make_link('_images/$hash/$id - $tags.$ext'));
|
return $this->parse_link_template(make_link('_images/$hash/$id - $tags.$ext'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user