summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-27 07:42:19 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-27 07:42:19 -0400
commit90b4873a00b0d8b4249a323fc84a7460024f491b (patch)
tree58a6783887b6b5fef653feed019aa1bc1e8b8baf /lib/util.php
parent47f030ef65d03dcb63f459a02598392fed71a8e4 (diff)
client side of distributed subscription almost complete
darcs-hash:20080527114219-84dde-784ddf4d4650c17bc7a1e3e01219c6948dfc9b3d.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 64fa230d2..31a2cbd4f 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -439,6 +439,14 @@ function common_mint_tag($extra) {
$config['tag']['date'].':'.$config['tag']['prefix'].$extra;
}
+# Should make up a reasonable root URL
+
+function common_root_url() {
+ global $config;
+ $pathpart = ($config['site']['path']) ? $config['site']['path']."/" : '';
+ return "http://".$config['site']['server'].'/'.$pathpart;
+}
+
// XXX: set up gettext
function _t($str) {