X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/8c40f2a64ae2ba63a1ed6c89cb7ce8a4b07e4dd1..f92fbaf636d620a0092fff8b715be9a493547b4f:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index 5381eed..eaf1952 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -50,6 +50,12 @@ if (file_exists($cfgFilePath)) { if ($GLOBALS['phorkie']['cfg']['baseurl'] === null) { $GLOBALS['phorkie']['cfg']['baseurl'] = Tools::detectBaseUrl(); + if (substr($GLOBALS['phorkie']['cfg']['git']['public'], 0, 9) == '%BASEURL%') { + //make autoconfig work + $GLOBALS['phorkie']['cfg']['git']['public'] = Tools::fullUrlNoPhar( + substr($GLOBALS['phorkie']['cfg']['git']['public'], 9) + ); + } } // Set/Get git commit session variables