[*] Installer: check if sessions path if writable

This commit is contained in:
Rémi Gaillard
2013-03-11 18:51:48 +01:00
parent d73fcdf412
commit f3579dd5eb
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -47,6 +47,7 @@ class ConfigurationTestCore
'upload' => false,
'gd' => false,
'mysql_support' => false,
'sessions' => false,
'config_dir' => 'config',
'cache_dir' => 'cache',
'sitemap' => 'sitemap.xml',
@@ -305,6 +306,13 @@ class ConfigurationTestCore
return function_exists('mcrypt_encrypt');
}
public static function test_sessions()
{
if (!$path = @ini_get('session.save_path'))
return true;
return ConfigurationTest::test_dir($path);
}
public static function test_dom()
{
return extension_loaded('Dom');