From b6083535edafbc0f4c4f5a9d0223aee7a1bea053 Mon Sep 17 00:00:00 2001 From: mattab Date: Thu, 9 Jan 2014 19:48:58 +1300 Subject: [PATCH] Minor refactor --- plugins/Installation/Controller.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/Installation/Controller.php b/plugins/Installation/Controller.php index c81c806bb56..49902832435 100644 --- a/plugins/Installation/Controller.php +++ b/plugins/Installation/Controller.php @@ -883,7 +883,18 @@ public static function getSystemInformation() // check if filesystem is NFS, if it is file based sessions won't work properly $infos['is_nfs'] = Filesystem::checkIfFileSystemIsNFS(); + $infos = self::enrichSystemChecks($infos); + return $infos; + } + + + /** + * @param $infos + * @return mixed + */ + public static function enrichSystemChecks($infos) + { // determine whether there are any errors/warnings from the checks done above $infos['has_errors'] = false; $infos['has_warnings'] = false; @@ -909,7 +920,6 @@ public static function getSystemInformation() ) { $infos['has_warnings'] = true; } - return $infos; }