summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index e732715..b4d930f 100644
--- a/index.php
+++ b/index.php
@@ -12,7 +12,8 @@
if($_GET['page']) $page = Unquote($_GET['page']);
else $page = $config['home'];
- $data = $pages->Get($page, 'c');
+ if($_GET['mode'] == 'edit') $data = $pages->GetEditor($page, 'c', $GLOBALS['links']->GetNeonLink($page, null, false));
+ else $data = $pages->Get($page, 'c');
echo '<?xml version="1.0" encoding="UTF-8" ?>';
?>
@@ -33,8 +34,7 @@
if($pages->HasWriteAccess($page, 'c')) {
$backlink = $GLOBALS['links']->GetNeonLink($page);
- echo '<a class="editlink" href="' . $GLOBALS['links']->GetNeonLink('Pages:Edit',
- 'name=' . urlencode($page)) . '&amp;type=c&amp;backlink=' . urlencode($backlink) . '">Bearbeiten</a>';
+ echo '<a class="editlink" href="' . $GLOBALS['links']->GetNeonLink($page, 'mode=edit') . '">Bearbeiten</a>';
}
echo $data['content'];