* finish task #2292.

This commit is contained in:
wangyidong
2015-09-06 14:49:35 +08:00
parent 08f665a20f
commit 7871037e38
2 changed files with 4 additions and 10 deletions

View File

@@ -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;
}
/**

View File

@@ -79,7 +79,6 @@
?>
</td>
</tr>
<?php if(preg_match('/WIN/i', PHP_OS)):?>
<tr>
<th><?php echo $lang->install->session;?></th>
<td>
@@ -103,7 +102,6 @@
?>
</td>
</tr>
<?php endif;?>
</table>
</div>
<div class='modal-footer'>