diff --git a/module/install/model.php b/module/install/model.php index 29e415d3f9..cfbf55af8d 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -133,10 +133,14 @@ class installModel extends model */ public function getSessionSavePath() { - $result['path'] = session_save_path(); - $result['exists'] = is_dir($result['path']); - $result['writable'] = is_writable($result['path']); - return $result; + if(preg_match('/WIN/i', PHP_OS)) + { + $result['path'] = session_save_path(); + $result['exists'] = is_dir($result['path']); + $result['writable'] = is_writable($result['path']); + return $result; + } + return array('path' => '/tmp', 'exists' => true, 'writable' => true); } /** @@ -147,8 +151,12 @@ class installModel extends model */ public function checkSessionSavePath() { - $sessionSavePath = session_save_path(); - return $result = (is_dir($sessionSavePath) and is_writable($sessionSavePath)) ? 'ok' : 'fail'; + if(preg_match('/WIN/i', PHP_OS)) + { + $sessionSavePath = session_save_path(); + return $result = (is_dir($sessionSavePath) and is_writable($sessionSavePath)) ? 'ok' : 'fail'; + } + return 'ok'; } /** diff --git a/module/install/view/step1.html.php b/module/install/view/step1.html.php index 80cc0f6b97..f1f8462140 100644 --- a/module/install/view/step1.html.php +++ b/module/install/view/step1.html.php @@ -74,6 +74,7 @@ ?> + install->session;?> @@ -97,10 +98,11 @@ ?> + createLink('install', 'step2'), $lang->install->next); }