diff options
Diffstat (limited to 'pages/content/Pages:Handle.xml')
-rw-r--r-- | pages/content/Pages:Handle.xml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pages/content/Pages:Handle.xml b/pages/content/Pages:Handle.xml index c2b6602..cc334e0 100644 --- a/pages/content/Pages:Handle.xml +++ b/pages/content/Pages:Handle.xml @@ -44,13 +44,11 @@ <?PHP } elseif(isset($_POST['edit'])) { - if($_POST['name']) { - $data = $GLOBALS['pages']->GetEditor(Unquote($_POST['name']), $_POST['type']); - - $title = $data['title']; - - echo $data['content']; - } + $backlink = $GLOBALS['links']->GetNeonLink('Pages', 'type=' . $_POST['type'], false); + + header('Location: ' . $GLOBALS['links']->GetNeonLink('Pages:Edit', 'type=' . $_POST['type'] . + '&name=' . urlencode(Unquote($_POST['name'])) . '&backlink=' . urlencode($backlink), false)); + exit(); } elseif(isset($_POST['privs'])) { if($_POST['name']) { |