Overview
Comment: | Make it clear that you need an image library to upload images |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
64d72652f5524a6fb94969c62ee8e0ce |
User & Date: | bohwaz on 2020-11-27 13:03:30 |
Other Links: | branch diff | manifest | tags |
Context
2020-11-27
| ||
13:54 | Fix selector for radio-button current state check-in: 7126f88b4a user: bohwaz tags: dev | |
13:03 | Make it clear that you need an image library to upload images check-in: 64d72652f5 user: bohwaz tags: dev | |
12:43 | New release check-in: afa60d222c user: bohwaz tags: dev, 1.0.0-rc2 | |
Changes
Modified src/include/lib/Garradin/Config.php from [1f03b1bf2c] to [06d32e37da].
︙ | ︙ | |||
134 135 136 137 138 139 140 | catch (\InvalidArgumentException $e) { // Ignore: the file has already been deleted } } if (strlen($value) > 0) { | > > | | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | catch (\InvalidArgumentException $e) { // Ignore: the file has already been deleted } } if (strlen($value) > 0) { $content = $value; $value = null; $f = Fichiers::storeFromBase64($key . '.png', $content); $value = $f->id; unset($f); } } unset($value, $key); |
︙ | ︙ |
Modified src/include/lib/Garradin/Fichiers.php from [245dbef1e2] to [04d7bcf61a].
︙ | ︙ | |||
583 584 585 586 587 588 589 | $hash = sha1($content); $size = strlen($content); } unset($i); } catch (\RuntimeException $e) { | > > > | | 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 | $hash = sha1($content); $size = strlen($content); } unset($i); } catch (\RuntimeException $e) { if (strstr($e->getMessage(), 'No suitable image library found')) { throw new UserException('Le serveur n\'a aucune bibliothèque de gestion d\'image installée, et ne peut donc pas accepter les images. Installez Imagick ou GD.'); } throw new UserException('Fichier image invalide'); } } $db = DB::getInstance(); $db->begin(); |
︙ | ︙ |