summaryrefslogtreecommitdiffstats
path: root/pages/content/Pages:Handle.xml
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-18 02:20:03 +0200
committerneoraider <devnull@localhost>2006-04-18 02:20:03 +0200
commit531b89f69ab5e72900fbd2484d60491f68e9153b (patch)
tree397a9203c3cc7c2042b9276f67e89ede68fcd0da /pages/content/Pages:Handle.xml
parente7359ccf2db89b1feec820d1c97583f720ae0d7a (diff)
downloadneon-531b89f69ab5e72900fbd2484d60491f68e9153b.tar
neon-531b89f69ab5e72900fbd2484d60491f68e9153b.zip
Sofort-Bearbeiten funktioniert jetzt.
Diffstat (limited to 'pages/content/Pages:Handle.xml')
-rw-r--r--pages/content/Pages:Handle.xml12
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']) {