summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-20 12:31:36 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-20 12:57:55 +0100
commit6de9033d8655f172320fd092916b51b56b0f8080 (patch)
tree92548a31f07820f0f9028f6805cc2f3fd1f153af /core
parent36c0f08ec0c5327f9b38f1078ee0d6ef8823b8da (diff)
downloadnextcloud-server-6de9033d8655f172320fd092916b51b56b0f8080.tar.gz
nextcloud-server-6de9033d8655f172320fd092916b51b56b0f8080.zip
Added warning for Mac OS on setup page
Diffstat (limited to 'core')
-rw-r--r--core/setup/controller.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/setup/controller.php b/core/setup/controller.php
index 697408cfb57..bb9c9101fe2 100644
--- a/core/setup/controller.php
+++ b/core/setup/controller.php
@@ -80,6 +80,13 @@ class Controller {
return $post;
}
+ /**
+ * Gathers system information like database type and does
+ * a few system checks.
+ *
+ * @return array of system info, including an "errors" value
+ * in case of errors/warnings
+ */
public function getSystemInfo() {
$hasSQLite = class_exists('SQLite3');
$hasMySQL = is_callable('mysql_connect');
@@ -122,6 +129,20 @@ class Controller {
$htaccessWorking = false;
}
+ if (\OC_Util::runningOnMac()) {
+ $l10n = \OC_L10N::get('core');
+ $themeName = \OC_Util::getTheme();
+ $theme = new \OC_Defaults();
+ $errors[] = array(
+ 'error' => $l10n->t(
+ 'Mac OS X is not supported and %s will not work properly on this platform. ' .
+ 'Use it at your own risk! ',
+ $theme->getName()
+ ),
+ 'hint' => $l10n->t('For the best results, please consider using a GNU/Linux server instead.')
+ );
+ }
+
return array(
'hasSQLite' => $hasSQLite,
'hasMySQL' => $hasMySQL,