summaryrefslogtreecommitdiffstats
path: root/pages/content/Pages:Handle.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pages/content/Pages:Handle.xml')
-rw-r--r--pages/content/Pages:Handle.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/pages/content/Pages:Handle.xml b/pages/content/Pages:Handle.xml
index cc334e0..f96cd4a 100644
--- a/pages/content/Pages:Handle.xml
+++ b/pages/content/Pages:Handle.xml
@@ -44,11 +44,13 @@
<?PHP
}
elseif(isset($_POST['edit'])) {
- $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();
+ if($_POST['name']) {
+ $data = $GLOBALS['pages']->GetEditor(Unquote($_POST['name']), $_POST['type'], $GLOBALS['links']->GetNeonLink('Pages', null, false));
+
+ $title = $data['title'];
+
+ echo $data['content'];
+ }
}
elseif(isset($_POST['privs'])) {
if($_POST['name']) {