X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Ffunctions.php;h=e970f54c529faaa6e2f6a9fabd93e7cf27ff4e7a;hb=5707529d8056238ba42e16f55b23b15a5e8c4d9b;hp=511e0cffea903ade8e8c7b0506f76efdbc4462dd;hpb=2cce3a10f172ca1ee7150d80d80d98ecb7527d3b;p=readifood.git
diff --git a/lib/functions.php b/lib/functions.php
index 511e0cf..e970f54 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -434,6 +434,18 @@
echo "Day: ";
}
+ function get_small_link() {
+ /* Args are , , [ ...] */
+ $args = func_get_args();
+ $html = htmlspecialchars(array_shift($args));
+ $url = array_shift($args);
+ return vsprintf("$html\n", $args);
+ }
+
+ function small_link() {
+ echo call_user_func_array("get_small_link", func_get_args());
+ }
+
include_once("$lib_root/admin.php");
include_once("$lib_root/forms.php");