Allow the help_baseurl to be configured via interface variables

This commit is contained in:
Kienan Stewart 2022-06-30 12:45:37 -04:00 committed by Camille Lafitte
parent b61c69f007
commit b4062026d9
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,6 @@ if (!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_PW'])) {
list($usec, $sec) = explode(" ", microtime());
mt_srand($usec * 1000000);
$help_baseurl = "http://www.aide-alternc.org/";
/* Server Domain Name */
$host = getenv("HTTP_HOST");
@ -229,6 +227,8 @@ if ((variable_get('sql_max_username_length', NULL)==NULL)||(variable_get('sql_ma
}
$help_baseurl = variable_get('help_baseurl', 'http://www.aide-alternc.org/', 'The base URL for help liks', array('desc' => 'Help URL', 'type' => 'string'));
// any page can add elements to js/css part of <head> BEFORE including head.php
$addhead=array('js'=>array(), 'css'=>array());