From 5350c73f9969ac6c7af35a779bfc65f995e39447 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Sat, 1 Apr 2017 02:33:05 -0300 Subject: [PATCH] remove useless getAppPath in controllers --- controller/pagecontroller.php | 2 -- controller/utilscontroller.php | 4 ---- 2 files changed, 6 deletions(-) diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php index f390d42..71f5ec5 100644 --- a/controller/pagecontroller.php +++ b/controller/pagecontroller.php @@ -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 diff --git a/controller/utilscontroller.php b/controller/utilscontroller.php index 68d7e2e..a897ac5 100644 --- a/controller/utilscontroller.php +++ b/controller/utilscontroller.php @@ -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