Changeset 12920
- Timestamp:
- 11/10/08 23:01:22 (8 months ago)
- Files:
-
- branches/1.2/data/bin/symfony (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/data/bin/symfony
r8627 r12920 11 11 12 12 // project exists? 13 if (file_exists('config/ config.php'))13 if (file_exists('config/ProjectConfiguration.class.php')) 14 14 { 15 include('config/config.php'); 15 require_once('config/ProjectConfiguration.class.php'); 16 $configuration = new ProjectConfiguration(); 17 18 $dir = $configuration->getSymfonyLibDir(); 16 19 } 17 18 if (!isset($sf_symfony_lib_dir)) 20 else 19 21 { 20 22 if (is_readable(dirname(__FILE__).'/../../lib/autoload/sfCoreAutoload.class.php')) 21 23 { 22 24 // SVN 23 $ sf_symfony_lib_dir= realpath(dirname(__FILE__).'/../../lib');25 $dir = realpath(dirname(__FILE__).'/../../lib'); 24 26 } 25 27 else 26 28 { 27 29 // PEAR 28 $ sf_symfony_lib_dir= '@PEAR-DIR@/symfony';30 $dir = '@PEAR-DIR@/symfony'; 29 31 30 if (!is_dir($ sf_symfony_lib_dir))32 if (!is_dir($dir)) 31 33 { 32 34 throw new Exception('Unable to find symfony libraries'); … … 35 37 } 36 38 37 include($ sf_symfony_lib_dir.'/command/cli.php');39 include($dir.'/command/cli.php');

