Changeset 7:8e25b11db024
- Timestamp:
- 04/27/11 09:13:06 (14 years ago)
- Branch:
- default
- Children:
- 8:0b114ae7d03f, 9:ea9f75add9b1, 17:6fc4226eaebd
- Location:
- inc
- Files:
-
- 124 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/prepend.php
r0 r7 22 22 23 23 /* ------------------------------------------------------------------------------------------- */ 24 # ClearBricks, Twig andDotClear classes auto-loader24 # ClearBricks, DotClear classes auto-loader 25 25 if (@is_dir('/usr/lib/clearbricks')) { 26 26 define('CLEARBRICKS_PATH','/usr/lib/clearbricks'); … … 33 33 if (!defined('CLEARBRICKS_PATH') || !is_dir(CLEARBRICKS_PATH)) { 34 34 exit('No clearbricks path defined'); 35 }36 37 if (@is_dir('/usr/lib/twig')) {38 define('TWIG_PATH','/usr/lib/twig');39 } elseif (is_dir(dirname(__FILE__).'/libs/twig')) {40 define('TWIG_PATH',dirname(__FILE__).'/libs/twig');41 } elseif (isset($_SERVER['TWIG_PATH']) && is_dir($_SERVER['TWIG_PATH'])) {42 define('TWIG_PATH',$_SERVER['TWIG_PATH']);43 }44 45 if (!defined('TWIG_PATH') || !is_dir(TWIG_PATH)) {46 exit('No Twig path defined');47 35 } 48 36 … … 82 70 $__autoload['context'] = dirname(__FILE__).'/public/lib.tpl.context.php'; 83 71 $__autoload['dcUrlHandlers'] = dirname(__FILE__).'/public/lib.urlhandlers.php'; 84 85 require TWIG_PATH.'/Autoloader.php';86 Twig_Autoloader::register();87 72 88 73 # Clearbricks extensions
Note: See TracChangeset
for help on using the changeset viewer.