From d94f45680c6cae83a65737b1b9603f39d7ae05b2 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sun, 7 Aug 2005 15:47:26 +0200
Subject: [PATCH] xhtml fix for recent changes #499

darcs-hash:20050807134726-7ad00-371965dc6bea32e86221e93b3a677bc1047fb089.gz
---
 inc/html.php | 30 +++++++++++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)

diff --git a/inc/html.php b/inc/html.php
index 7768a1005..ede4c325c 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -414,7 +414,15 @@ function html_revisions(){
     print $date;
 
     print ' <a href="'.wl($ID,"rev=$rev,do=diff").'">';
-    print '<img src="'.DOKU_BASE.'lib/images/diff.png" border="0" width="15" height="11" title="'.$lang['diff'].'" />';
+    $p = array();
+    $p['src']    = DOKU_BASE.'lib/images/diff.png';
+    $p['border'] = 0;
+    $p['width']  = 15;
+    $p['height'] = 11;
+    $p['title']  = $lang['diff'];
+    $p['alt']    = $lang['diff'];
+    $att = buildAttributes($p);
+    print "<img $att />";
     print '</a> ';
 
     print '<a class="wikilink1" href="'.wl($ID,"rev=$rev").'">'.$ID.'</a> ';
@@ -466,11 +474,27 @@ function html_recent($first=0){
     print $date.' ';
 
     print '<a href="'.wl($id,"do=diff").'">';
-    print '<img src="'.DOKU_BASE.'lib/images/diff.png" border="0" width="15" height="11" title="'.$lang['diff'].'" />';
+    $p = array();
+    $p['src']    = DOKU_BASE.'lib/images/diff.png';
+    $p['border'] = 0;
+    $p['width']  = 15;
+    $p['height'] = 11;
+    $p['title']  = $lang['diff'];
+    $p['alt']    = $lang['diff'];
+    $att = buildAttributes($p);
+    print "<img $att />";
     print '</a> ';
 
     print '<a href="'.wl($id,"do=revisions").'">';
-    print '<img src="'.DOKU_BASE.'lib/images/history.png" border="0" width="12" height="14" title="'.$lang['btn_revs'].'" />';
+    $p = array();
+    $p['src']    = DOKU_BASE.'lib/images/history.png';
+    $p['border'] = 0;
+    $p['width']  = 12;
+    $p['height'] = 14;
+    $p['title']  = $lang['btn_revs'];
+    $p['alt']    = $lang['btn_revs'];
+    $att = buildAttributes($p);
+    print "<img $att />";
     print '</a> ';
 
     print html_wikilink($id,$conf['useheading']?NULL:$id);
-- 
GitLab