hasPerm(ThreadEntry::PERM_EDIT);
do {
$i++;
if (!$omniscient
// The current version is always visible
&& $i > 1
// If you originally posted it, you can see all the edits
&& $E->staff_id != $thisstaff->getId()
// You can see your own edits
&& ($E->editor != $thisstaff->getId() || $E->editor_type != 'S')
) {
// Skip edits made by other agents
continue;
} ?>
title)
echo Format::htmlchars($E->title).' — '; ?>
updated, '0000-') === false)
echo sprintf(__('Edited on %s by %s'), Format::datetime($E->updated),
($editor = $E->getEditor()) ? $editor->getName() : '');
else
echo __('Original'); ?>
getBody()->toHtml(); ?>
getParent()) && $E->type == $entry->type);
?>