Development

Changeset 10973

You must first sign up to be able to contribute.

Changeset 10973

Show
Ignore:
Timestamp:
08/19/08 22:49:14 (2 years ago)
Author:
dwhittle
Message:

dwhittle: merged changes to branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dwhittle/1.0/lib/log/sfLogger/sfFileLogger.class.php

    r6598 r10973  
    7474  public function shutdown() 
    7575  { 
    76     if ($this->fp
     76    if (is_resource($this->fp)
    7777    { 
    7878      fclose($this->fp); 
  • branches/dwhittle/1.1/lib/cache/sfNoCache.class.php

    r4599 r10973  
    2424  public function get($key, $default = null) 
    2525  { 
    26     return null
     26    return $default
    2727  } 
    2828 
  • branches/dwhittle/1.1/lib/log/sfFileLogger.class.php

    r9088 r10973  
    120120  public function shutdown() 
    121121  { 
    122     if ($this->fp
     122    if (is_resource($this->fp)
    123123    { 
    124124      fclose($this->fp); 
  • branches/dwhittle/1.2/lib/cache/sfNoCache.class.php

    r7605 r10973  
    2424  public function get($key, $default = null) 
    2525  { 
    26     return null
     26    return $default
    2727  } 
    2828 
  • branches/dwhittle/1.2/lib/log/sfFileLogger.class.php

    r9081 r10973  
    121121  public function shutdown() 
    122122  { 
    123     if ($this->fp
     123    if (is_resource($this->fp)
    124124    { 
    125125      fclose($this->fp); 
  • branches/dwhittle/1.2/lib/routing/sfPatternRouting.class.php

    r10594 r10973  
    553553      if (!$found) 
    554554      { 
    555         throw new sfConfigurationException(sprintf('Unable to find a matching routing rule to generate url for params "%s".', var_export($params, true))); 
     555        throw new sfConfigurationException(sprintf('Unable to find a matching routing rule to generate url for params "%s".', str_replace("\n", '', var_export($params, true)))); 
    556556      } 
    557557    } 
     
    617617      if ($this->options['logging']) 
    618618      { 
    619         $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Match route [%s] for "%s"', $routeInfo['name'], $routeInfo['route'])))); 
     619        $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Match route [%s] for "%s" with parameters %s', $routeInfo['name'], $routeInfo['route'], str_replace("\n", '', var_export($routeInfo['parameters'], true)))))); 
    620620      } 
    621621    } 
  • branches/dwhittle/1.2/lib/util/sfInflector.class.php

    r9051 r10973  
    3030    $tmp = $lower_case_and_underscored_word; 
    3131    $tmp = sfToolkit::pregtr($tmp, array('#/(.?)#e'    => "'::'.strtoupper('\\1')", 
    32                                          '/(^|_)(.)/e' => "strtoupper('\\2')")); 
     32                                         '/(^|_|-)+(.)/e' => "strtoupper('\\2')")); 
    3333 
    3434    return $tmp; 

The Sensio Labs Network

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