summaryrefslogtreecommitdiffstats
path: root/settings/controller/checksetupcontroller.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-07 11:11:31 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-07 12:25:30 +0200
commit81ec1c8a1ad208457eae772a20174abf4f6bafe7 (patch)
tree359adb19cb7a4dbe922d22733fa41537ea12e11a /settings/controller/checksetupcontroller.php
parent95e55aa4adb690947ff73f2c703dac7010ed2cae (diff)
downloadnextcloud-server-81ec1c8a1ad208457eae772a20174abf4f6bafe7.tar.gz
nextcloud-server-81ec1c8a1ad208457eae772a20174abf4f6bafe7.zip
Remove hardcoded link to performance docs
Diffstat (limited to 'settings/controller/checksetupcontroller.php')
-rw-r--r--settings/controller/checksetupcontroller.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/settings/controller/checksetupcontroller.php b/settings/controller/checksetupcontroller.php
index ae3f1b99c52..15719ce215f 100644
--- a/settings/controller/checksetupcontroller.php
+++ b/settings/controller/checksetupcontroller.php
@@ -27,6 +27,7 @@ use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\IRequest;
use OC_Util;
+use OCP\IURLGenerator;
/**
* @package OC\Settings\Controller
@@ -38,23 +39,28 @@ class CheckSetupController extends Controller {
private $clientService;
/** @var \OC_Util */
private $util;
+ /** @var IURLGenerator */
+ private $urlGenerator;
/**
* @param string $AppName
* @param IRequest $request
* @param IConfig $config
* @param IClientService $clientService
+ * @param IURLGenerator $urlGenerator
* @param \OC_Util $util
*/
public function __construct($AppName,
IRequest $request,
IConfig $config,
IClientService $clientService,
+ IURLGenerator $urlGenerator,
\OC_Util $util) {
parent::__construct($AppName, $request);
$this->config = $config;
$this->clientService = $clientService;
$this->util = $util;
+ $this->urlGenerator = $urlGenerator;
}
/**
@@ -93,6 +99,7 @@ class CheckSetupController extends Controller {
'serverHasInternetConnection' => $this->isInternetConnectionWorking(),
'dataDirectoryProtected' => $this->util->isHtaccessWorking($this->config),
'isMemcacheConfigured' => $this->isMemcacheConfigured(),
+ 'memcacheDocs' => $this->urlGenerator->linkToDocs('admin-performance'),
]
);
}