Commit 4a47b821 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix image url rewriting in blog blocks (bug #656096)


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent e3539d5e
......@@ -2,7 +2,7 @@
<tr>
<td>
<h3><a href="{$WWWROOT}view/artefact.php?artefact={$post->id}&view={$options.viewid}">{$post->title}</a></h3>
<div>{$post->description|clean_html|safe}</div>
<div>{$post->description|clean_html|safe|append_view_url:$options.viewid}</div>
{if $post->tags}
<div class="tags"><label>{str tag=tags}:</label> {list_tags owner=$post->owner tags=$post->tags}</div>
{/if}
......
<?php
/**
* Dwoo {append_view_url} function plugin
*
* Type: function<br>
* Date: June 22, 2006<br>
* Purpose: See ArtefactTypeFolder::append_view_url
* @author Catalyst IT Ltd
* @version 1.0
*/
function Dwoo_Plugin_append_view_url(Dwoo $dwoo, $html, $viewid=null) {
return empty($viewid) ? $html : ArtefactTypeFolder::append_view_url($html, $viewid);
}
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