Dotclear

Changeset 1106:a4487f3ca4b4 for inc


Ignore:
Timestamp:
02/25/13 10:18:08 (12 years ago)
Author:
JcDenis
Branch:
twig
Parents:
1101:7273894e61b8 (diff), 1105:ce855d61f9ce (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge with default branch in 2.5-RC

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/prepend.php

    r1092 r1106  
    143143# Constants 
    144144define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 
    145 define('DC_VERSION','2.5-dev'); 
     145define('DC_VERSION','2.5-RC'); 
    146146define('DC_DIGESTS',dirname(__FILE__).'/digests'); 
    147147define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); 
  • inc/prepend.php

    r1105 r1106  
    1212 
    1313/* ------------------------------------------------------------------------------------------- */ 
    14 #  ClearBricks, DotClear classes auto-loader 
     14#  ClearBricks, Twig, DotClear classes auto-loader 
    1515if (@is_dir('/usr/lib/clearbricks')) { 
    1616     define('CLEARBRICKS_PATH','/usr/lib/clearbricks'); 
     
    4646$__autoload['dcWorkspace']              = dirname(__FILE__).'/core/class.dc.workspace.php'; 
    4747$__autoload['dcPrefs']                  = dirname(__FILE__).'/core/class.dc.prefs.php'; 
     48$__autoload['dcTwigPage']               = dirname(__FILE__).'/core/class.dc.twig.page.php'; 
    4849 
    4950$__autoload['rsExtPost']                = dirname(__FILE__).'/core/class.dc.rs.extensions.php'; 
     
    5253$__autoload['rsExtUser']                = dirname(__FILE__).'/core/class.dc.rs.extensions.php'; 
    5354 
     55$__autoload['dcAdminContext']                = dirname(__FILE__).'/admin/class.dc.admincontext.php'; 
    5456$__autoload['dcMenu']                   = dirname(__FILE__).'/admin/class.dc.menu.php'; 
    5557$__autoload['dcPage']                   = dirname(__FILE__).'/admin/lib.dc.page.php'; 
     
    6365$__autoload['context']                  = dirname(__FILE__).'/public/lib.tpl.context.php'; 
    6466$__autoload['dcUrlHandlers']            = dirname(__FILE__).'/public/lib.urlhandlers.php'; 
     67$__autoload['dcForm']              = dirname(__FILE__).'/admin/class.dc.form.php'; 
     68$__autoload['dcFormExtension']               = dirname(__FILE__).'/admin/class.dc.form.php'; 
     69$__autoload['dcTabExtension']           = dirname(__FILE__).'/admin/class.dc.tab.php'; 
    6570 
    6671# Clearbricks extensions 
    6772html::$absolute_regs[] = '/(<param\s+name="movie"\s+value=")(.*?)(")/msu'; 
    6873html::$absolute_regs[] = '/(<param\s+name="FlashVars"\s+value=".*?(?:mp3|flv)=)(.*?)(&|")/msu'; 
     74 
     75if (@is_dir('/usr/lib/twig')) { 
     76     define('TWIG_PATH','/usr/lib/twig'); 
     77} elseif (is_dir(dirname(__FILE__).'/libs/twig')) { 
     78     define('TWIG_PATH',dirname(__FILE__).'/libs/twig'); 
     79} elseif (isset($_SERVER['TWIG_PATH']) && is_dir($_SERVER['TWIG_PATH'])) { 
     80     define('TWIG_PATH',$_SERVER['TWIG_PATH']); 
     81} 
     82 
     83if (!defined('TWIG_PATH') || !is_dir(TWIG_PATH)) { 
     84     exit('No Twig path defined'); 
     85} 
     86require TWIG_PATH.'/Autoloader.php'; 
     87Twig_Autoloader::register(); 
     88 
    6989/* ------------------------------------------------------------------------------------------- */ 
    7090 
Note: See TracChangeset for help on using the changeset viewer.

Sites map