diff options
author | neoraider <devnull@localhost> | 2006-04-18 20:47:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-04-18 20:47:03 +0200 |
commit | 7b622dca2d4a24221202d85c15ba68d0974b432c (patch) | |
tree | 4234772ed30b7e2e7a7c751d8520ab608227035f /index.php | |
parent | aea6a2fa30bff2be100858bfc582384df4b84195 (diff) | |
download | neon-7b622dca2d4a24221202d85c15ba68d0974b432c.tar neon-7b622dca2d4a24221202d85c15ba68d0974b432c.zip |
Sofort-Bearbeiten-Funktion ?berarbeitet.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) . '&type=c&backlink=' . urlencode($backlink) . '">Bearbeiten</a>'; + echo '<a class="editlink" href="' . $GLOBALS['links']->GetNeonLink($page, 'mode=edit') . '">Bearbeiten</a>'; } echo $data['content']; |