|
|
|
@ -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, |
|
|
|
|