projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c80827d
)
Load relative etc/local.inc if exists
author
Christian Bayle
<cbayle@gmail.com>
Thu, 12 Jun 2003 00:39:05 +0000
(
00:39
+0000)
committer
Christian Bayle
<cbayle@gmail.com>
Thu, 12 Jun 2003 00:39:05 +0000
(
00:39
+0000)
gforge/www/include/pre.php
patch
|
blob
|
history
diff --git
a/gforge/www/include/pre.php
b/gforge/www/include/pre.php
index 19c55602b4ea82baf01ab2bbee9a7ef9dab0d247..30a6d03c068cde0a58570a4288cfab2532f2184a 100644
(file)
--- a/
gforge/www/include/pre.php
+++ b/
gforge/www/include/pre.php
@@
-22,7
+22,11
@@
if (is_file('/etc/gforge/custom/pre.php')){
// Defines all of the Source Forge hosts, databases, etc.
// This needs to be loaded first because the lines below depend upon it.
-require ('/etc/gforge/local.inc');
+if (is_file('/etc/gforge/local.inc')) {
+ require ('/etc/gforge/local.inc');
+} else {
+ require('etc/local.inc');
+}
if ($HTTP_HOST != $GLOBALS['sys_default_domain'] && $HTTP_HOST != $GLOBALS['sys_fallback_domain']) {
if ($SERVER_PORT == '443') {