Skip to content

Commit 5a3989a

Browse files
authored
Merge pull request #146 from moufmouf/fix_fetch_from_env_save
Fixing saving of the fetchFromEnv parameter in config
2 parents 1ccda50 + 7dff8dd commit 5a3989a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src-dev/Mouf/Controllers/ConfigController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function register($name = null, $defaultvalue = null, $value = null, $typ
195195
* @param string $type
196196
* @param string $selfedit
197197
*/
198-
public function registerConstant($name, $comment, $type, $defaultvalue = "", $value = "", $selfedit = "false") {
198+
public function registerConstant($name, $comment, $type, $defaultvalue = "", $value = "", $selfedit = "false", $fetchFromEnv = "false") {
199199
$this->selfedit = $selfedit;
200200

201201
if ($selfedit == "true") {
@@ -224,7 +224,7 @@ public function registerConstant($name, $comment, $type, $defaultvalue = "", $va
224224
}
225225
}
226226

227-
$this->configManager->registerConstant($name, $type, $defaultvalue, $comment);
227+
$this->configManager->registerConstant($name, $type, $defaultvalue, $comment, $fetchFromEnv === 'true');
228228
$this->moufManager->rewriteMouf();
229229

230230
// Now, let's write the constant for our environment:

0 commit comments

Comments
 (0)