this should fix custom image links

This commit is contained in:
Daku 2012-01-31 13:30:57 +00:00
parent 899bc22538
commit a1cc88cade

View File

@ -251,11 +251,11 @@ class Image {
*/
public function get_image_link() {
global $config;
$image_ilink = $config->get_string('image_ilink'); // store a copy for speed.
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)) {
return $this->parse_link_template(make_link('_images/$hash/$id - $tags.$ext'));