Changeset 2984
- Timestamp:
- 07/25/08 17:23:15 (4 weeks ago)
- Files:
-
- trunk/project/modules/stable/standard/default/resources/default.properties (modified) (1 diff)
- trunk/project/modules/stable/standard/default/resources/default_fr.properties (modified) (1 diff)
- trunk/project/modules/stable/standard/default/templates/exception.tpl (modified) (2 diffs)
- trunk/project/modules/stable/standard/generictools/actiongroups/messages.actiongroup.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/project/modules/stable/standard/default/resources/default.properties
r609 r2984 5 5 default.officialLinks = Officials links 6 6 default.quickStart = Quick start 7 default.description = Copix core 8 default.exception.type = Type 9 default.exception.code = Code 10 default.exception.file = File 11 default.exception.line = Line trunk/project/modules/stable/standard/default/resources/default_fr.properties
r609 r2984 6 6 default.quickStart = Bien commencer 7 7 default.description = Base de Copix 8 default.exception.type = Type 9 default.exception.code = Code 10 default.exception.file = Fichier 11 default.exception.line = Ligne trunk/project/modules/stable/standard/default/templates/exception.tpl
r2559 r2984 12 12 <div class="errorMessage" style="text-align: left"> 13 13 <h1>{i18n key="generictools|messages.titlePage.debugInformation"}</h1> 14 <b>Type</b> : {$ppo->type}<br /> 15 <b>Fichier</b> : {$ppo->file}<br /> 16 <b>Ligne</b> : {$ppo->line} 14 <b>{i18n key="default.exception.type"} :</b> {$ppo->type}<br /> 15 <b>{i18n key="default.exception.code"} :</b> {$ppo->code}<br /> 16 <b>{i18n key="default.exception.file"} :</b> {$ppo->file}<br /> 17 <b>{i18n key="default.exception.line"} :</b> {$ppo->line} 17 18 18 19 <br /><br /> … … 44 45 <td>{if isset($item.class)}{$item.class}{/if}</td> 45 46 <td><b>{$item.function}</b></td> 46 <td><pre style="overflow: auto; max-width: 640px; max-height: 400px">{$item.args|@var_ export:true}</pre></td>47 <td><pre style="overflow: auto; max-width: 640px; max-height: 400px">{$item.args|@var_dump:true}</pre></td> 47 48 </tr> 48 49 </tbody> trunk/project/modules/stable/standard/generictools/actiongroups/messages.actiongroup.php
r2767 r2984 95 95 $ppo->line = $e->getLine (); 96 96 $ppo->trace = $e->getTrace (); 97 $ppo->id = uniqid ();97 $ppo->id = uniqid (); 98 98 $ppo->urlBack = (isset ($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : null; 99 99 switch (CopixConfig::instance ()->getMode ()) { … … 103 103 default : $ppo->mode = 'UNKNOW'; break; 104 104 } 105 105 106 // recherche de la constante qui a servit pour le code de l'exception 107 $reflect = new Reflectionclass ($ppo->type); 108 $consts = $reflect->getConstants (); 109 $ppo->code = (($temp = array_search ($e->getCode (), $consts)) != '') ? $temp : 0; 110 106 111 return _arPpo ($ppo, 'default|exception.tpl'); 107 112 }
