Commit 63a03c73 authored by merlinofchaos's avatar merlinofchaos
Browse files

Re-fix for clean URL off support

parent 299a9299
...@@ -453,8 +453,10 @@ function advanced_help_view_topic($module, $topic, $popup = FALSE) { ...@@ -453,8 +453,10 @@ function advanced_help_view_topic($module, $topic, $popup = FALSE) {
$output = preg_replace('/src="topic:([^"]+)"/', 'src="' . url('help/$1') . '"', $output); $output = preg_replace('/src="topic:([^"]+)"/', 'src="' . url('help/$1') . '"', $output);
} }
$output = preg_replace('/href="path:([^"]+)"/', 'href="' . url($info['path']) . '/$1"', $output); global $base_path;
$output = preg_replace('/src="path:([^"]+)"/', 'src="' . url($info['path']) . '/$1"', $output);
$output = preg_replace('/href="path:([^"]+)"/', 'href="' . $base_path . $info['path'] . '/$1"', $output);
$output = preg_replace('/src="path:([^"]+)"/', 'src="' . $base_path . $info['path'] . '/$1"', $output);
return '<div class="advanced-help-topic">' . $output . '</div>'; return '<div class="advanced-help-topic">' . $output . '</div>';
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment