Development

Changeset 4938

You must first sign up to be able to contribute.

Changeset 4938

Show
Ignore:
Timestamp:
08/30/07 11:34:39 (2 years ago)
Author:
fabien
Message:

removed error references as they are not really used extensively

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/data/data/exception.php

    r4550 r4938  
    3535  <h1>[<?php echo $name ?>]</h1> 
    3636  <h2 id="message"><?php echo $message ?></h2> 
    37   <?php if ($error_reference): ?> 
    38     <p class="error"><a href='http://www.symfony-project.com/errors/<?php echo $error_reference ?>'>learn more about this issue</a></p> 
    39   <?php endif; ?> 
    4037  <h2>stack trace</h2> 
    4138  <ul><li><?php echo implode('</li><li>', $traces) ?></li></ul> 
  • trunk/lib/config/sfPhpConfigHandler.class.php

    r4845 r4938  
    7979        if (!array_key_exists($key, $configs)) 
    8080        { 
    81           throw new sfParseException(sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive [err0002].', $configFiles[0], $key)); 
     81          throw new sfParseException(sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive.', $configFiles[0], $key)); 
    8282        } 
    8383 
    8484        if (ini_get($key) != $value) 
    8585        { 
    86           throw new sfInitializationException(sprintf('Configuration file "%s" specifies that php.ini "%s" key must be set to "%s". The current value is "%s" (%s). [err0001].', $configFiles[0], $key, var_export($value, true), var_export(ini_get($key), true), $this->get_ini_path())); 
     86          throw new sfInitializationException(sprintf('Configuration file "%s" specifies that php.ini "%s" key must be set to "%s". The current value is "%s" (%s).', $configFiles[0], $key, var_export($value, true), var_export(ini_get($key), true), $this->get_ini_path())); 
    8787        } 
    8888      } 
     
    9999        if (!array_key_exists($key, $configs)) 
    100100        { 
    101           throw new sfParseException(sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive [err0002].', $configFiles[0], $key)); 
     101          throw new sfParseException(sprintf('Configuration file "%s" specifies key "%s" which is not a php.ini directive.', $configFiles[0], $key)); 
    102102        } 
    103103 
  • trunk/lib/exception/sfException.class.php

    r4839 r4938  
    113113    $format  = 0 == strncasecmp(PHP_SAPI, 'cli', 3) ? 'plain' : 'html'; 
    114114    $traces  = $this->getTraces($exception, $format); 
    115  
    116     // extract error reference from message 
    117     $error_reference = ''; 
    118     if (preg_match('/\[(err\d+)\]/', $message, $matches)) 
    119     { 
    120       $error_reference = $matches[1]; 
    121     } 
    122115 
    123116    // dump main objects values 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.