Changeset 13439

Show
Ignore:
Timestamp:
11/15/07 15:06:24 (1 year ago)
Author:
bergie
Message:

New config file that will be included after MidCOM is initialized. Useful for mass settings in large site wizard scenarios

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom.php

    r13318 r13439  
    4747    define('MIDCOM_STATIC_URL', '/midcom-static'); 
    4848} 
    49 if (! defined('MIDCOM_CONFIG_FILE')) 
     49if (! defined('MIDCOM_CONFIG_FILE_BEFORE')) 
    5050{ 
    51     define('MIDCOM_CONFIG_FILE', '/etc/midgard/midcom.conf'); 
     51    define('MIDCOM_CONFIG_FILE_BEFORE', '/etc/midgard/midcom.conf'); 
     52
     53if (! defined('MIDCOM_CONFIG_FILE_AFTER')) 
     54
     55    define('MIDCOM_CONFIG_FILE_AFTER', '/etc/midgard/midcom-after.conf'); 
    5256} 
    5357 
     
    168172//$GLOBALS['midcom'] =& $_MIDCOM; 
    169173$_MIDCOM->initialize(); 
     174 
     175if (file_exists(MIDCOM_CONFIG_FILE_AFTER)) 
     176{ 
     177    include(MIDCOM_CONFIG_FILE_AFTER); 
     178} 
    170179?> 
  • trunk/midcom/midcom.core/midcom/config/midcom_config.php

    r13424 r13439  
    516516/* ----- Include the site config ----- */ 
    517517/* This should be replaced by $_MIDGARD constructs */ 
    518 if (file_exists(MIDCOM_CONFIG_FILE)) 
     518if (file_exists(MIDCOM_CONFIG_FILE_BEFORE)) 
    519519{ 
    520     include(MIDCOM_CONFIG_FILE); 
     520    include(MIDCOM_CONFIG_FILE_BEFORE); 
    521521} 
    522522