summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common.php4
-rw-r--r--lib/util.php7
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 50d0110e2..9328d33e9 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -39,6 +39,10 @@ $config =
array('name' => 'Just another Laconica microblog',
'server' => 'localhost',
'path' => '/'),
+ 'tag' =>
+ array('authority' => 'INVALID TAG',
+ 'date' => 'PUT A DATE HERE',
+ 'prefix' => ''),
'license' =>
array('url' => 'http://creativecommons.org/license/by/3.0/',
'title' => 'Creative Commons Attribution 3.0',
diff --git a/lib/util.php b/lib/util.php
index 3be29651c..83c0964f5 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -432,6 +432,13 @@ function common_notice_form() {
common_element_end('form');
}
+function common_mint_tag($extra) {
+ global $config;
+ return
+ 'tag:'.$config['tag']['authority'].','.
+ $config['tag']['date'].':'$config['tag']['prefix'].$extra;
+}
+
// XXX: set up gettext
function _t($str) {