remove useless getAppPath in controllers
parent
acbd58b0e5
commit
5350c73f99
|
@ -93,13 +93,11 @@ class PageController extends Controller {
|
||||||
private $dbconnection;
|
private $dbconnection;
|
||||||
private $dbtype;
|
private $dbtype;
|
||||||
private $dbdblquotes;
|
private $dbdblquotes;
|
||||||
private $appPath;
|
|
||||||
|
|
||||||
public function __construct($AppName, IRequest $request, $UserId,
|
public function __construct($AppName, IRequest $request, $UserId,
|
||||||
$userfolder, $config, $shareManager, IAppManager $appManager){
|
$userfolder, $config, $shareManager, IAppManager $appManager){
|
||||||
parent::__construct($AppName, $request);
|
parent::__construct($AppName, $request);
|
||||||
$this->appVersion = $config->getAppValue('gpxedit', 'installed_version');
|
$this->appVersion = $config->getAppValue('gpxedit', 'installed_version');
|
||||||
$this->appPath = $appManager->getAppPath('gpxedit');
|
|
||||||
$this->userId = $UserId;
|
$this->userId = $UserId;
|
||||||
$this->dbtype = $config->getSystemValue('dbtype');
|
$this->dbtype = $config->getSystemValue('dbtype');
|
||||||
// IConfig object
|
// IConfig object
|
||||||
|
|
|
@ -83,14 +83,10 @@ class UtilsController extends Controller {
|
||||||
private $userAbsoluteDataPath;
|
private $userAbsoluteDataPath;
|
||||||
private $dbconnection;
|
private $dbconnection;
|
||||||
private $dbtype;
|
private $dbtype;
|
||||||
private $appPath;
|
|
||||||
//private $request;
|
|
||||||
|
|
||||||
public function __construct($AppName, IRequest $request, $UserId,
|
public function __construct($AppName, IRequest $request, $UserId,
|
||||||
$userfolder, $config, IAppManager $appManager){
|
$userfolder, $config, IAppManager $appManager){
|
||||||
parent::__construct($AppName, $request);
|
parent::__construct($AppName, $request);
|
||||||
//$this->request = $request;
|
|
||||||
$this->appPath = $appManager->getAppPath('gpxedit');
|
|
||||||
$this->userId = $UserId;
|
$this->userId = $UserId;
|
||||||
$this->dbtype = $config->getSystemValue('dbtype');
|
$this->dbtype = $config->getSystemValue('dbtype');
|
||||||
// IConfig object
|
// IConfig object
|
||||||
|
|
Loading…
Reference in New Issue