Changeset 2984

Show
Ignore:
Timestamp:
07/25/08 17:23:15 (4 weeks ago)
Author:
steevanb
Message:

- Ajout du code de l'exception
- Textes en i18n

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/project/modules/stable/standard/default/resources/default.properties

    r609 r2984  
    55default.officialLinks = Officials links 
    66default.quickStart = Quick start 
     7default.description = Copix core 
     8default.exception.type = Type 
     9default.exception.code = Code 
     10default.exception.file = File 
     11default.exception.line = Line 
  • trunk/project/modules/stable/standard/default/resources/default_fr.properties

    r609 r2984  
    66default.quickStart = Bien commencer 
    77default.description = Base de Copix 
     8default.exception.type = Type 
     9default.exception.code = Code 
     10default.exception.file = Fichier 
     11default.exception.line = Ligne 
  • trunk/project/modules/stable/standard/default/templates/exception.tpl

    r2559 r2984  
    1212    <div class="errorMessage" style="text-align: left"> 
    1313        <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} 
    1718         
    1819        <br /><br /> 
     
    4445                            <td>{if isset($item.class)}{$item.class}{/if}</td> 
    4546                            <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> 
    4748                        </tr> 
    4849                    </tbody> 
  • trunk/project/modules/stable/standard/generictools/actiongroups/messages.actiongroup.php

    r2767 r2984  
    9595        $ppo->line = $e->getLine (); 
    9696        $ppo->trace = $e->getTrace (); 
    97         $ppo->id = uniqid(); 
     97        $ppo->id = uniqid (); 
    9898        $ppo->urlBack = (isset ($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : null; 
    9999        switch (CopixConfig::instance ()->getMode ()) { 
     
    103103            default : $ppo->mode = 'UNKNOW'; break; 
    104104        } 
    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         
    106111        return _arPpo ($ppo, 'default|exception.tpl'); 
    107112    }