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