Development

#2193: fix_2193-1.patch

You must first sign up to be able to contribute.

Ticket #2193: fix_2193-1.patch

File fix_2193-1.patch, 1.1 kB (added by gregoire, 1 year ago)
  • lib/addon/bridge/sfEzComponentsBridge.class.php

    old new  
    66 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     9 
    910 */ 
    1011 
    11 require_once((sfConfig::get('sf_ez_lib_dir') ? sfConfig::get('sf_ez_lib_dir').'/' : '').'Base/src/base.php'); 
     12// first check whether eZ components exists 
     13// depending on if it is installed from pear or svn 
     14// library path may differ. 
    1215 
     16$base = sfConfig::get('sf_ez_lib_dir') ? sfConfig::get('sf_ez_lib_dir').'/' : ''; 
     17 
     18if ($include = file_exists(($base.'Base/src/base.php'))) 
     19{ 
     20  require_once($include); 
     21} 
     22elseif ($include = ($base.'Base/base.php')) 
     23{ 
     24  require_once($include); 
     25} 
     26else 
     27{ 
     28  throw new sfAutoloadException('Invalid eZ component library path.'); 
     29} 
     30 
    1331/** 
    1432 * This class makes easy to use ez components classes within symfony 
    1533 *