JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
link to archived versions from page edit page
[wfpl-cms.git] / admin_pages.php
index 910acef..ae0fa33 100644 (file)
@@ -173,6 +173,10 @@ function admin_pages_main_form($id = false, $history_id = false) {
                        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);