JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
db_upgrade rework, admin_header, cleanup
[wfpl-cms.git] / admin_pages.php
index 87e1806..4081f94 100644 (file)
@@ -36,7 +36,7 @@ function admin_pages_get_fields() {
 
 
 function admin_pages_main() {
-       session_auth_must('edit_page');
+       session_auth_must('admin_pages');
 
        $id = _REQUEST_cut('edit_id');
        if($id) {
@@ -72,6 +72,7 @@ function admin_pages_main() {
 # admin-only access to view pages with no filename
 function admin_pages_main_display($id) {
        cms_display_content($GLOBALS['wfpl_main_template'], 'where id=%i', $id);
+       $GLOBALS['wfpl_main_template']->data['$admin_links']['$edit_page_id'] = $id;
 }
 
 function admin_pages_main_delete($id) {