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 6 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. 9 9 10 */ 10 11 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. 12 15 16 $base = sfConfig::get('sf_ez_lib_dir') ? sfConfig::get('sf_ez_lib_dir').'/' : ''; 17 18 if ($include = file_exists(($base.'Base/src/base.php'))) 19 { 20 require_once($include); 21 } 22 elseif ($include = ($base.'Base/base.php')) 23 { 24 require_once($include); 25 } 26 else 27 { 28 throw new sfAutoloadException('Invalid eZ component library path.'); 29 } 30 13 31 /** 14 32 * This class makes easy to use ez components classes within symfony 15 33 *