From 0686da461503e8b1161e3aaedbb8a42795e1f095 Mon Sep 17 00:00:00 2001
From: Michael Hamann <michael@content-space.de>
Date: Wed, 25 Jul 2012 17:40:34 +0200
Subject: [PATCH] Fix icon alt text for page changes

The alt text is now the page id as it is the media id for media changes,
previously it was empty as $filename is undefined in that context.
---
 inc/html.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/html.php b/inc/html.php
index 0afdb1820..83e1f3643 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -709,7 +709,7 @@ function html_recent($first=0, $show_changes='both'){
             $form->addElement(media_printicon($recent['id']));
         } else {
             $icon = DOKU_BASE.'lib/images/fileicons/file.png';
-            $form->addElement('<img src="'.$icon.'" alt="'.$filename.'" class="icon" />');
+            $form->addElement('<img src="'.$icon.'" alt="'.$recent['id'].'" class="icon" />');
         }
 
         $form->addElement(form_makeOpenTag('span', array('class' => 'date')));
-- 
GitLab