mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
fix creation of cached extension configuration
This commit is contained in:
parent
869b6a6dae
commit
d16559c3d1
|
@ -57,17 +57,21 @@ class SeedDMS_Extension_Mgr {
|
||||||
*/
|
*/
|
||||||
function createExtensionConf() { /* {{{ */
|
function createExtensionConf() { /* {{{ */
|
||||||
$extensions = self::getExtensions();
|
$extensions = self::getExtensions();
|
||||||
$fp = fopen($this->cachedir."/extensions.php", "w");
|
$fp = fopen(self::getExtensionsConfFile(), "w");
|
||||||
if($extensions) {
|
if($fp) {
|
||||||
foreach($extensions as $_ext) {
|
if($extensions) {
|
||||||
if(file_exists($this->extdir . "/" . $_ext . "/conf.php")) {
|
foreach($extensions as $_ext) {
|
||||||
$content = file_get_contents($this->extdir . "/" . $_ext . "/conf.php");
|
if(file_exists($this->extdir . "/" . $_ext . "/conf.php")) {
|
||||||
fwrite($fp, $content);
|
$content = file_get_contents($this->extdir . "/" . $_ext . "/conf.php");
|
||||||
|
fwrite($fp, $content);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fclose($fp);
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
fclose($fp);
|
|
||||||
//include($this->cachedir."/extensions.php");
|
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function getExtensions() { /* {{{ */
|
function getExtensions() { /* {{{ */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user