git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
automatically configure git paths (dir + public clone url)
[phorkie.git]
/
www
/
www-header.php
diff --git
a/www/www-header.php
b/www/www-header.php
index 5381eed67a4f01e89b528ad7a47a8630d6031d9d..eaf19520bef3b840586ad7ac4c61116591bee118 100644
(file)
--- 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 ($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
}
// Set/Get git commit session variables