Overview
Comment: | Fix: message d'erreur si aucun plugin sélectionné (signalé par @Sébastien) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
c97a0ca3bbcef5b5bb20d5191fd0118e |
User & Date: | bohwaz on 2017-01-19 21:34:29 |
Other Links: | manifest | tags |
References
2020-12-08
| ||
23:25 | • Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz | |
Context
2017-01-22
| ||
21:48 | Fix .htaccess pour plugins avec MultiViews (merci @Fabien et @Sébastien) check-in: ead6ede24a user: bohwaz tags: trunk | |
2017-01-19
| ||
21:34 | Merge avec trunk check-in: 1b1ebb4095 user: bohwaz tags: dev | |
21:34 | Fix: message d'erreur si aucun plugin sélectionné (signalé par @Sébastien) check-in: c97a0ca3bb user: bohwaz tags: trunk | |
2017-01-16
| ||
22:50 | Plugin : add context for uninstall too check-in: 1b8f3acdcc user: bohwaz tags: trunk | |
Changes
Modified src/www/admin/config/plugins.php from [f36de87df9] to [692d092f7d].
︙ | ︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 | if (!empty($_POST['install'])) { if (!Utils::CSRF_check('install_plugin')) { $error = 'Une erreur est survenue, merci de renvoyer le formulaire.'; } else { try { Plugin::install(Utils::post('to_install'), false); Utils::redirect('/admin/config/plugins.php'); } | > > > > | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | if (!empty($_POST['install'])) { if (!Utils::CSRF_check('install_plugin')) { $error = 'Une erreur est survenue, merci de renvoyer le formulaire.'; } elseif (trim(Utils::post('to_install')) === '') { $error = 'Aucun plugin sélectionné.'; } else { try { Plugin::install(Utils::post('to_install'), false); Utils::redirect('/admin/config/plugins.php'); } |
︙ | ︙ | |||
58 59 60 61 62 63 64 | else { $tpl->assign('liste_telecharges', Plugin::listDownloaded()); $tpl->assign('liste_installes', Plugin::listInstalled()); } $tpl->display('admin/config/plugins.tpl'); | < < | 62 63 64 65 66 67 68 | else { $tpl->assign('liste_telecharges', Plugin::listDownloaded()); $tpl->assign('liste_installes', Plugin::listInstalled()); } $tpl->display('admin/config/plugins.tpl'); |