Skip to content
Snippets Groups Projects
Commit 4a24b459 authored by Kate Arzamastseva's avatar Kate Arzamastseva
Browse files

issue #46 Render links to missing media files as link to the media manager

parent 30fd72fb
No related branches found
No related tags found
No related merge requests found
......@@ -805,8 +805,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
if($hash) $link['url'] .= '#'.$hash;
//markup non existing files
if (!$exists)
$link['class'] .= ' wikilink2';
if (!$exists) {
$link['class'] .= ' wikilink2';
$link['url'] = media_managerURL(array('tab_details' => 'view', 'image' => $src, 'ns' => getNS($src)), '&');
}
//output formatted
if ($linking == 'nolink' || $noLink) $this->doc .= $link['name'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment