* fix bugs #746,747.

This commit is contained in:
wangyidong
2015-10-08 15:52:49 +08:00
parent 0138d6f7f9
commit 2495cae340
7 changed files with 13 additions and 12 deletions
+2 -6
View File
@@ -147,12 +147,8 @@ class installModel extends model
*/
public function checkSessionSavePath()
{
if(preg_match('/WIN/i', PHP_OS))
{
$sessionSavePath = preg_replace("/\d;/", '', session_save_path());
return $result = (is_dir($sessionSavePath) and is_writable($sessionSavePath)) ? 'ok' : 'fail';
}
return 'ok';
$sessionSavePath = preg_replace("/\d;/", '', session_save_path());
return $result = (is_dir($sessionSavePath) and is_writable($sessionSavePath)) ? 'ok' : 'fail';
}
/**