From cddd152cd07fff794aa5023d9cd6e61e26ab433c Mon Sep 17 00:00:00 2001
From: michael <michael@content-space.de>
Date: Sun, 12 Oct 2008 21:01:08 +0200
Subject: [PATCH] Accesskeys and correct escaping for html_recent()

Readded the accesskeys to the recent changes HTML and removed double escaping of & in the diff- and revisions-urls.

darcs-hash:20081012190108-074e0-ff556fd216f202ad1d7ef843cd98de908b919ceb.gz
---
 inc/html.php | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/inc/html.php b/inc/html.php
index f15faf961..f9c58c896 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -565,7 +565,7 @@ function html_recent($first=0){
     $form->addElement($date);
     $form->addElement(form_makeCloseTag('span'));
 
-    $form->addElement(form_makeOpenTag('a', array('class' => 'diff_link', 'href' => wl($recent['id'],"do=diff"))));
+    $form->addElement(form_makeOpenTag('a', array('class' => 'diff_link', 'href' => wl($recent['id'],"do=diff", false, '&'))));
     $form->addElement(form_makeTag('img', array(
       'src'   => DOKU_BASE.'lib/images/diff.png',
       'width' => 15,
@@ -575,7 +575,7 @@ function html_recent($first=0){
     )));
     $form->addElement(form_makeCloseTag('a'));
 
-    $form->addElement(form_makeOpenTag('a', array('class' => 'revisions_link', 'href' => wl($recent['id'],"do=revisions"))));
+    $form->addElement(form_makeOpenTag('a', array('class' => 'revisions_link', 'href' => wl($recent['id'],"do=revisions",false,'&'))));
     $form->addElement(form_makeTag('img', array(
       'src'   => DOKU_BASE.'lib/images/history.png',
       'width' => 12,
@@ -613,7 +613,9 @@ function html_recent($first=0){
     $form->addElement(form_makeTag('input', array(
       'type'  => 'submit',
       'name'  => 'first['.$first.']',
-      'value' => $lang['btn_newer']
+      'value' => $lang['btn_newer'],
+      'accesskey' => 'n',
+      'title' => '[ALT+N]'
     )));
     $form->addElement(form_makeCloseTag('div'));
   }
@@ -622,7 +624,9 @@ function html_recent($first=0){
     $form->addElement(form_makeTag('input', array(
       'type'  => 'submit',
       'name'  => 'first['.$last.']',
-      'value' => $lang['btn_older']
+      'value' => $lang['btn_older'],
+      'accesskey' => 'p',
+      'title'  => '[ALT+P]'
     )));
     $form->addElement(form_makeCloseTag('div'));
   }
-- 
GitLab