X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Ffunctions.php;h=e970f54c529faaa6e2f6a9fabd93e7cf27ff4e7a;hb=1f7a83666984030585efbd902006bd797da66ebc;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");