1 From dcd19aee23d60b285ec5d4991eb1f3b51cae34b7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen@delfi.ee>
3 Date: Tue, 9 Jun 2015 11:16:12 +0300
4 Subject: [PATCH] fileicons: allow specify what sizes to dump
5 URL: https://github.com/splitbrain/dokuwiki/pull/1187
6 Status: Rejected by upstream
9 lib/images/fileicons/index.php | 17 ++++++++++++++++-
10 1 file changed, 16 insertions(+), 1 deletion(-)
12 diff --git a/lib/images/fileicons/index.php b/lib/images/fileicons/index.php
13 index 09b6c9d..ffb41c5 100644
14 --- a/lib/images/fileicons/index.php
15 +++ b/lib/images/fileicons/index.php
21 +$sizes = isset($_GET['sizes']) ? explode(',', (string)$_GET['sizes']) : array(16, 32);
25 +if (in_array(16, $sizes)) :
27 <div class="white box">
29 foreach (glob('*.png') as $img) {
33 <br style="clear: left" />
39 +if (in_array(32, $sizes)) :
41 <div class="white box">
43 foreach (glob('32x32/*.png') as $img) {