Overview
Comment:Merge avec trunk
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 1b1ebb40952e4f097ac12c8032f6a19370a2c5ee
User & Date: bohwaz on 2017-01-19 21:34:59
Other Links: branch diff | manifest | tags
Context
2017-01-23
05:39
Merge avec trunk check-in: 55df9fab5d user: bohwaz tags: dev
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
04:22
Correction de certains bugs dans les templates avec la transition à Smartyer check-in: 2a49b9aeb6 user: bohwaz tags: dev
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
65
66
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');