remove useless getAppPath in controllers

merge-requests/1/head
Julien Veyssier 2017-04-01 02:33:05 -03:00
parent acbd58b0e5
commit 5350c73f99
2 changed files with 0 additions and 6 deletions

View File

@ -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

View File

@ -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