Overview
Comment:Afficher les erreurs utilisateurs en mode texte
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 492a8b9e8ba64664bf250fc9cb9a483c88ac3c71
User & Date: bohwaz on 2014-04-15 05:12:44
Other Links: manifest | tags
Context
2014-04-15
05:13
Possibilité de choisir le montant de la cotisation check-in: 25897d90e8 user: bohwaz tags: trunk
05:12
Afficher les erreurs utilisateurs en mode texte check-in: 492a8b9e8b user: bohwaz tags: trunk
05:12
Gestion un peu plus intelligente des transactions check-in: a172283519 user: bohwaz tags: trunk
Changes

Modified src/include/init.php from [9daab30c7a] to [099e752c34].

176
177
178
179
180
181
182






183
184
185
186


187
188
189
190
191
192
193
}

function exception_handler($e)
{
    if ($e instanceOf UserException || $e instanceOf miniSkelMarkupException)
    {
        try {






            $tpl = Template::getInstance();

            $tpl->assign('error', $e->getMessage());
            $tpl->display('error.tpl');


            exit;
        }
        catch (Exception $e)
        {
        }
    }








>
>
>
>
>
>
|

|
|
>
>







176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
}

function exception_handler($e)
{
    if ($e instanceOf UserException || $e instanceOf miniSkelMarkupException)
    {
        try {
            if (PHP_SAPI == 'cli')
            {
                echo $e->getMessage();
            }
            else
            {
                $tpl = Template::getInstance();

                $tpl->assign('error', $e->getMessage());
                $tpl->display('error.tpl');
            }

            exit;
        }
        catch (Exception $e)
        {
        }
    }