summaryrefslogtreecommitdiff
path: root/BitInstaller.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-08-05 16:25:49 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-08-05 16:25:49 +0000
commit0516cdad33ec02be5e1184ce158d2aa6bf78e2a3 (patch)
tree5897bf6a3cfdd6e08b3c89239d8620c79e92b460 /BitInstaller.php
parent5ecde5b326720e0bf0d8ad05e9bc3e5875d9d4df (diff)
downloadinstall-0516cdad33ec02be5e1184ce158d2aa6bf78e2a3.tar.gz
install-0516cdad33ec02be5e1184ce158d2aa6bf78e2a3.tar.bz2
install-0516cdad33ec02be5e1184ce158d2aa6bf78e2a3.zip
tabs to indent code
Diffstat (limited to 'BitInstaller.php')
-rw-r--r--BitInstaller.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/BitInstaller.php b/BitInstaller.php
index 8e9bbe8..56b8317 100644
--- a/BitInstaller.php
+++ b/BitInstaller.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/BitInstaller.php,v 1.21 2006/07/04 15:30:45 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/BitInstaller.php,v 1.22 2006/08/05 16:25:49 squareing Exp $
* @package install
*/
@@ -304,23 +304,23 @@ class BitInstaller extends BitSystem {
function check_session_save_path() {
global $errors;
if (ini_get('session.save_handler') == 'files') {
- $save_path = ini_get('session.save_path');
+ $save_path = ini_get('session.save_path');
- if (!is_dir($save_path)) {
- $errors .= "The directory '$save_path' does not exist or PHP is not allowed to access it (check session.save_path or open_basedir entries in php.ini).\n";
- } else if (!bw_is_writeable($save_path)) {
- $errors .= "The directory '$save_path' is not writeable.\n";
- }
+ if (!is_dir($save_path)) {
+ $errors .= "The directory '$save_path' does not exist or PHP is not allowed to access it (check session.save_path or open_basedir entries in php.ini).\n";
+ } else if (!bw_is_writeable($save_path)) {
+ $errors .= "The directory '$save_path' is not writeable.\n";
+ }
- if ($errors) {
- $save_path = BitSystem::tempdir();
+ if ($errors) {
+ $save_path = BitSystem::tempdir();
- if (is_dir($save_path) && bw_is_writeable($save_path)) {
- ini_set('session.save_path', $save_path);
+ if (is_dir($save_path) && bw_is_writeable($save_path)) {
+ ini_set('session.save_path', $save_path);
- $errors = '';
- }
- }
+ $errors = '';
+ }
+ }
}
}