X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FShowCustomFieldWikitext;h=b45f2f42322543645a9a3bcf8341f6772d1f8d72;hp=5f32d479e61e67dbe575bb5de428fe917435aa8f;hb=de9d037528895f7151a9aead6724ce2df95f9586;hpb=e9e0cf0989259b94d9758eceff448666a2e5a5cc diff --git a/rt/share/html/Elements/ShowCustomFieldWikitext b/rt/share/html/Elements/ShowCustomFieldWikitext index 5f32d479e..b45f2f423 100644 --- a/rt/share/html/Elements/ShowCustomFieldWikitext +++ b/rt/share/html/Elements/ShowCustomFieldWikitext @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 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