mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
include all conf.php files and var_export() them instead of concating them
This commit is contained in:
parent
edb91d3299
commit
7529c68c80
|
@ -206,13 +206,19 @@ class SeedDMS_Extension_Mgr {
|
||||||
$fp = @fopen(self::getExtensionsConfFile(), "w");
|
$fp = @fopen(self::getExtensionsConfFile(), "w");
|
||||||
if($fp) {
|
if($fp) {
|
||||||
if($extensions) {
|
if($extensions) {
|
||||||
|
$EXT_CONF = [];
|
||||||
foreach($extensions as $_ext) {
|
foreach($extensions as $_ext) {
|
||||||
if(file_exists($this->extdir . "/" . $_ext . "/conf.php")) {
|
if(file_exists($this->extdir . "/" . $_ext . "/conf.php")) {
|
||||||
$content = file_get_contents($this->extdir . "/" . $_ext . "/conf.php");
|
include $this->extdir . "/" . $_ext . "/conf.php";
|
||||||
fwrite($fp, $content);
|
// $content = file_get_contents($this->extdir . "/" . $_ext . "/conf.php");
|
||||||
|
// fwrite($fp, $content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// fclose($fp);
|
||||||
|
// $fp = @fopen(self::getExtensionsConfFile(), "w");
|
||||||
|
fwrite($fp, '<?php
|
||||||
|
$EXT_CONF = '.var_export($EXT_CONF, true).';');
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user