mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Minor fixes in html/install.php
This commit is contained in:
@ -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';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user