git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c59746
)
login/edit: resize avatar preview image
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 16 Jun 2018 13:33:21 +0000
(15:33 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 16 Jun 2018 19:58:28 +0000
(21:58 +0200)
login/edit.php
patch
|
blob
|
history
diff --git
a/login/edit.php
b/login/edit.php
index e44d0597f6ea54147758f5ebcba6c01a2e525d2c..be27f9c98dde3d885969053364b0a02c48ba70f1 100644
(file)
--- a/
login/edit.php
+++ b/
login/edit.php
@@
-114,7
+114,10
@@
foreach ($cols as $col => &$colconf) {
print "\t";
printf('<label for="%s">%s:</label> ', $col, ucfirst($colconf['label']));
if (@$colconf['type'] == 'file' and isset($colconf['value'])) {
- printf('<img src="/%s" /><br />', $colconf['target']);
+ printf('<a href="/%s"><img src="/thumb/%s/%s" /></a><br />',
+ $colconf['target'],
+ 200, $colconf['target']
+ );
}
print "<input";
if (empty($colconf['target'])) print ' readonly';