mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
don't put standard ports in base_url, add dpkg support for packages, fix display of packages in main menubar
git-svn-id: http://www.observium.org/svn/observer/trunk@3070 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -75,11 +75,11 @@ if (isset($_SERVER["SERVER_NAME"]) && isset($_SERVER["SERVER_PORT"]))
|
||||
if (strpos($_SERVER["SERVER_NAME"] , ":"))
|
||||
{
|
||||
# Literal IPv6
|
||||
$config['base_url'] = "http://[" . $_SERVER["SERVER_NAME"] ."]:".$_SERVER["SERVER_PORT"]."/";
|
||||
$config['base_url'] = "http://[" . $_SERVER["SERVER_NAME"] ."]" . ($_SERVER["SERVER_PORT"] != 80 ? ":".$_SERVER["SERVER_PORT"] : '') ."/";
|
||||
}
|
||||
else
|
||||
{
|
||||
$config['base_url'] = "http://" . $_SERVER["SERVER_NAME"] .":".$_SERVER["SERVER_PORT"]."/";
|
||||
$config['base_url'] = "http://" . $_SERVER["SERVER_NAME"] . ($_SERVER["SERVER_PORT"] != 80 ? ":".$_SERVER["SERVER_PORT"] : '') ."/";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user