Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba955f9
)
fix "Edit this page" admin link when no filename
author
Jason Woofenden
<jason@jasonwoof.com>
Sat, 2 Jan 2016 04:58:33 +0000
(23:58 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Sat, 2 Jan 2016 04:58:33 +0000
(23:58 -0500)
admin_pages.php
patch
|
blob
|
history
diff --git
a/admin_pages.php
b/admin_pages.php
index
87e1806
..
7981bf6
100644
(file)
--- 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) {