Development

Changeset 10700

You must first sign up to be able to contribute.

Changeset 10700

Show
Ignore:
Timestamp:
08/06/08 11:36:49 (1 year ago)
Author:
hartym
Message:

[1.2] ported r10699 to 1.2 branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/config/sfProjectConfiguration.class.php

    r9454 r10700  
    139139 
    140140  /** 
    141    * Gets directories where model classes are stored. 
     141   * Gets directories where model classes are stored. The order of returned paths is lowest precedence 
     142   * to highest precedence. 
    142143   * 
    143144   * @return array An array of directories 
     
    145146  public function getModelDirs() 
    146147  { 
    147     $dirs = array(sfConfig::get('sf_lib_dir').'/model');                     // project 
    148     if ($pluginDirs = glob(sfConfig::get('sf_plugins_dir').'/*/lib/model')) 
    149     { 
    150       $dirs = array_merge($dirs, $pluginDirs);                               // plugins 
    151     } 
     148    $dirs = array(); 
     149 
     150    if ($pluginDirs = glob(sfConfig::get('sf_plugins_dir').'/*/lib/model'))                                   // plugins 
     151    { 
     152      $dirs = array_merge($dirs, $pluginDirs); 
     153    } 
     154 
     155    $dirs[] = sfConfig::get('sf_lib_dir').'/model';                                                           // project 
    152156 
    153157    return $dirs; 

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.