Commit e2046731 authored by m.stenta's avatar m.stenta
Browse files

Fix URL paths in filtered text.

parent f3a5790f
......@@ -429,7 +429,8 @@ function log_filter_log($text) {
}
// Generate replacement text.
$parsed = l('[Log #' . $id . ': '. entity_label('log', $log) . ']', entity_uri('log', $log));
$uri = entity_uri('log', $log);
$parsed = l('[Log #' . $id . ': '. entity_label('log', $log) . ']', $uri['path']);
// Replace all occurrences with the parsed version.
$text = str_replace($match, $parsed, $text);
......
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