Minor fixes in html/install.php

This commit is contained in:
f0o
2015-06-09 16:12:07 +00:00
parent fa33239513
commit afded4f6d2

View File

@ -32,7 +32,9 @@ $config['db_name']=$dbname;
include("../includes/defaults.inc.php");
// Work out the install directory
$cur_dir = explode('/',$_SERVER['DOCUMENT_ROOT']);
$install_dir = array_pop($cur_dir);
if( empty(end($cur_dir)) ) {
$install_dir = array_pop($cur_dir);
}
$install_dir = array_pop($cur_dir);
$install_dir = implode('/',$cur_dir);
$config['install_dir'] = $install_dir;
@ -221,7 +223,7 @@ foreach ($modules as $extension)
}
// Check for pear install
require_once 'System.php';
include_once 'System.php';
if(class_exists('System')===true)
{
$ext_loaded = 'yes';
@ -229,7 +231,7 @@ if(class_exists('System')===true)
}
else
{
$ext_loaded = 'yes';
$ext_loaded = 'no';
$row_class = 'danger';
}