Skip to content
Snippets Groups Projects
Commit 672a91c1 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #554 from splitbrain/fileicons

Switched file icons against generated ones, added 32x32 versions
parents b97c855c 11942aff
No related branches found
No related tags found
No related merge requests found
Showing
with 3 additions and 3 deletions
......@@ -1449,10 +1449,10 @@ function media_printfile($item,$auth,$jump,$display_namespace=false){
function media_printicon($filename){
list($ext) = mimetype(mediaFN($filename),false);
if (@file_exists(DOKU_INC.'lib/images/fileicons/'.$ext.'.png')) {
$icon = DOKU_BASE.'lib/images/fileicons/'.$ext.'.png';
if (@file_exists(DOKU_INC.'lib/images/fileicons/32x32/'.$ext.'.png')) {
$icon = DOKU_BASE.'lib/images/fileicons/32x32/'.$ext.'.png';
} else {
$icon = DOKU_BASE.'lib/images/fileicons/file.png';
$icon = DOKU_BASE.'lib/images/fileicons/32x32/file.png';
}
return '<img src="'.$icon.'" alt="'.$filename.'" class="icon" />';
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
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