Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

include base : instead of foreach names : direct includes in the fina…

…l config file
  • Loading branch information...
commit d638fd15914bc338e23b2e7430fa4e6754f1dbc1 1 parent c5d3f17
@christophehurpeau authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 app.php
  2. +1 −0  enhancers/files/ConfigFile.php
View
4 app.php
@@ -113,8 +113,8 @@ public static function run(){
/* /DEV */
- if(isset(Config::$base))
- foreach(Config::$base as $name) include CORE.'base/'.$name.'.php';
+ //if(isset(Config::$base))
+ // foreach(Config::$base as $name) include CORE.'base/'.$name.'.php';
try{
/* DEV */
if(isset(Config::$dev_prefixed_routes) && !Config::$dev_prefixed_routes){
View
1  enhancers/files/ConfigFile.php
@@ -208,6 +208,7 @@ private function writeClass(&$configname,&$configArray,&$devFile,&$prodFile){
}else $content.='$'.$key.'='.$code.',';
}
$content=substr($content,0,-1).';}'.$afterContent;
+ foreach($this->enhanced->config['base'] as $name) $content.='include CORE.\'base/'.$name.'.php\';';
foreach(array($devFile,$prodFile) as $dest){
$dest=new File(dirname($dest).DS.$configname.'.php');
$dest->write($content);
Please sign in to comment.
Something went wrong with that request. Please try again.