diff options
author | Ko- <k.stoffelen@cs.ru.nl> | 2017-03-16 11:48:28 +0100 |
---|---|---|
committer | Ko- <k.stoffelen@cs.ru.nl> | 2017-03-16 11:48:28 +0100 |
commit | 786ee72146773966ed774ee9a8128fbb2a2a713a (patch) | |
tree | 52c970ebaa3e0836ae12c036a8723bb8c838b67f /settings/Controller | |
parent | 0024b67aaf1b5fd79a2e73789a4c903364162e54 (diff) | |
download | nextcloud-server-786ee72146773966ed774ee9a8128fbb2a2a713a.tar.gz nextcloud-server-786ee72146773966ed774ee9a8128fbb2a2a713a.zip |
Add warning on admin screen when set_time_limit is unavailable
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/CheckSetupController.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index 016f6a1dab2..5e2aa365f67 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -286,6 +286,20 @@ class CheckSetupController extends Controller { } /** + * Checks if set_time_limit is not disabled. + * + * @return bool + */ + private function isSettimelimitAvailable() { + if (function_exists('set_time_limit') + && strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { + return true; + } + + return false; + } + + /** * @return RedirectResponse */ public function rescanFailedIntegrityCheck() { @@ -411,6 +425,7 @@ Raw output 'codeIntegrityCheckerDocumentation' => $this->urlGenerator->linkToDocs('admin-code-integrity'), 'isOpcacheProperlySetup' => $this->isOpcacheProperlySetup(), 'phpOpcacheDocumentation' => $this->urlGenerator->linkToDocs('admin-php-opcache'), + 'isSettimelimitAvailable' => $this->isSettimelimitAvailable(), ] ); } |