summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 063d7d9d9..203b37c87 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -83,6 +83,9 @@ function _sn_to_path($sn)
return $p;
}
+// Save our sanity when code gets loaded through subroutines such as PHPUnit tests
+global $default, $config, $_server, $_path;
+
// try to figure out where we are. $server and $path
// can be set by including module, else we guess based
// on HTTP info.