login/edit: set correct id for input fields
[minimedit.git] / login / edit.php
index e44d0597f6ea54147758f5ebcba6c01a2e525d2c..fe70ef95144dc5e348584c4ed0f09d3eaae388d6 100644 (file)
@@ -114,11 +114,14 @@ 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';
-       printf(' type="%s" name="%s" id="%1$s" value="%s"',
+       printf(' type="%s" name="%s" id="%2$s" value="%s"',
                @$colconf['type'] ?: 'text',
                $col,
                htmlspecialchars(@$colconf['value'])