X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=admin_pages.php;fp=admin_pages.php;h=ae0fa33de24af5eabefd46421d4bfd6e0f133eca;hp=910acef34dbdd84dfc27f614dee63a60734287d0;hb=948d843003f8f9f70e830e73ecd3e53bf231f247;hpb=80961022207dd7af4456b4f1247fc706395c8728 diff --git a/admin_pages.php b/admin_pages.php index 910acef..ae0fa33 100644 --- a/admin_pages.php +++ b/admin_pages.php @@ -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);