fix pagediff to not display as "preview"
I think originally, the page preview header was not displayed, so diff was hacked in using it.master
parent
a47e835f3a
commit
d3aaf6e01f
|
@ -71,7 +71,7 @@ sub formbuilder_setup {
|
|||
$content=~s/\r/\n/g;
|
||||
|
||||
my $diff = diff(srcfile($pagesources{$page}), $content);
|
||||
$form->tmpl_param("page_preview", $diff);
|
||||
$form->tmpl_param("page_diff", $diff);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -54,3 +54,12 @@
|
|||
<TMPL_VAR PAGE_PREVIEW>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF NAME="PAGE_DIFF">
|
||||
<hr />
|
||||
<div class="header">
|
||||
<span>Diff:</span>
|
||||
</div>
|
||||
<div id="diff">
|
||||
<TMPL_VAR PAGE_DIFF>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
|
Loading…
Reference in New Issue