From 7871037e38f20ac01dd251f0b7e91c5120600cc8 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Sun, 6 Sep 2015 14:49:35 +0800 Subject: [PATCH] * finish task #2292. --- module/install/model.php | 12 ++++-------- module/install/view/step1.html.php | 2 -- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/module/install/model.php b/module/install/model.php index 6b2627a742..0c5581e9fa 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -133,14 +133,10 @@ class installModel extends model */ public function getSessionSavePath() { - if(preg_match('/WIN/i', PHP_OS)) - { - $result['path'] = preg_replace("/\d;/", '', 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); + $result['path'] = preg_replace("/\d;/", '', session_save_path()); + $result['exists'] = is_dir($result['path']); + $result['writable'] = is_writable($result['path']); + return $result; } /** diff --git a/module/install/view/step1.html.php b/module/install/view/step1.html.php index 3465aa7085..c7d84cda98 100644 --- a/module/install/view/step1.html.php +++ b/module/install/view/step1.html.php @@ -79,7 +79,6 @@ ?> - install->session;?> @@ -103,7 +102,6 @@ ?> -