Skip to content
Snippets Groups Projects
Commit 0686da46 authored by Michael Hamann's avatar Michael Hamann
Browse files

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.
parent 71e14df4
No related branches found
No related tags found
No related merge requests found
......@@ -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')));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment