<h2><!--~id unset {~-->Add a new page<!--~}~--><!--~id {~-->Edit page "~title html~"<!--~}~--></h2>
+ <!--~archived_versions {~-->
+ <p><a href="admin_pages?history_page_id=~id~">View archived versions of this page</a></p>
+ <!--~}~-->
+
<form action="admin_pages" method="post"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
<div class="caption">Title</div>
return './admin_pages';
}
$id = $history_data['id'];
+ } elseif ($id) {
+ if (db_count('history_cms_pages', 'where id=%i', $id) > 1) {
+ tem_set('archived_versions');
+ }
}
if($id) {
tem_set('id', $id);