mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
pass database as first parameter to constructor of extension mgr
This commit is contained in:
parent
4d2a0d2a88
commit
8cb8c2fb27
|
@ -26,13 +26,6 @@
|
|||
* @version Release: @package_version@
|
||||
*/
|
||||
class SeedDMS_Extension_Mgr {
|
||||
/**
|
||||
* @var object $db reference to database object. This must be an instance
|
||||
* of {@link SeedDMS_Core_DatabaseAccess}.
|
||||
* @access protected
|
||||
*/
|
||||
protected $db;
|
||||
|
||||
/**
|
||||
* @var string $extdir directory where extensions are located
|
||||
* @access protected
|
||||
|
@ -47,8 +40,7 @@ class SeedDMS_Extension_Mgr {
|
|||
protected $cachedir;
|
||||
|
||||
|
||||
function __construct($db, $extdir = '', $cachedir = '') {
|
||||
$this->db = $db;
|
||||
function __construct($extdir = '', $cachedir = '') {
|
||||
$this->cachedir = $cachedir;
|
||||
$this->extdir = $extdir;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
require "inc.ClassExtensionMgr.php";
|
||||
require_once "inc.ClassExtBase.php";
|
||||
|
||||
$extMgr = new SeedDMS_Extension_Mgr($db, $settings->_rootDir."/ext", $settings->_cacheDir);
|
||||
$extMgr = new SeedDMS_Extension_Mgr($settings->_rootDir."/ext", $settings->_cacheDir);
|
||||
$extconffile = $extMgr->getExtensionsConfFile();
|
||||
if(!file_exists($extconffile)) {
|
||||
$extMgr->createExtensionConf();
|
||||
|
|
Loading…
Reference in New Issue
Block a user