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