X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FShowCustomFieldWikitext;h=5f3cdd5ffe15742e7dc0bfc19831619ec452a886;hp=337606139354f53c5350659ce11817e4d1e4271b;hb=187086c479a09629b7d180eec513fb7657f4e291;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7 diff --git a/rt/share/html/Elements/ShowCustomFieldWikitext b/rt/share/html/Elements/ShowCustomFieldWikitext index 337606139..5f3cdd5ff 100644 --- a/rt/share/html/Elements/ShowCustomFieldWikitext +++ b/rt/share/html/Elements/ShowCustomFieldWikitext @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,13 +45,21 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -% my $content = $Object->LargeContent || $Object->Content; -% $content = $m->comp('/Elements/ScrubHTML', Content => $content); -% my $base = $Object->Object->WikiBase; -% my $wiki_content = Text::WikiFormat::format( $content."\n" , {}, { extended => 1, absolute_links => 1, implicit_links => RT->Config->Get('WikiImplicitLinks'), prefix => $base} ); <%$wiki_content|n%> <%init> +my $content = $Object->LargeContent || $Object->Content; +$content = $m->comp('/Elements/ScrubHTML', Content => $content); +my $base = $Object->Object->WikiBase; +my %wiki_args = ( + extended => 1, + absolute_links => 1, + implicit_links => RT->Config->Get('WikiImplicitLinks'), + prefix => $base, +); +$m->callback( CallbackName => 'WikiFormatArgs', ARGSRef => \%ARGS, WikiArgsRef => \%wiki_args, ContentRef => \$content); + use Text::WikiFormat; +my $wiki_content = Text::WikiFormat::format( $content."\n" , {}, { %wiki_args } ); <%ARGS> $Object