From: Jason Woofenden Date: Sat, 2 Jan 2016 04:58:33 +0000 (-0500) Subject: fix "Edit this page" admin link when no filename X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=commitdiff_plain;h=ec007de8256e733087877546fd1a996a3497500b fix "Edit this page" admin link when no filename --- diff --git a/admin_pages.php b/admin_pages.php index 87e1806..7981bf6 100644 --- a/admin_pages.php +++ b/admin_pages.php @@ -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) {