mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Minor fixes in html/install.php
This commit is contained in:
+5
-3
@@ -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