aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-02-17 14:14:06 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-02-17 14:14:06 +0100
commit3d69e2a50c432421fb417e748a28d2cafd707b1f (patch)
treec01ed05d84ac450300bd761339fe0fc09c8c4bfc /boot.php
parentdc15e8640de0fcd77bf91b97aee6f890b34ba6cb (diff)
parentc948ab8f211c54ca73643ba23ddcde3da0c256a3 (diff)
downloadvolse-hubzilla-3d69e2a50c432421fb417e748a28d2cafd707b1f.tar.gz
volse-hubzilla-3d69e2a50c432421fb417e748a28d2cafd707b1f.tar.bz2
volse-hubzilla-3d69e2a50c432421fb417e748a28d2cafd707b1f.zip
Merge branch 'master' into themetests
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 3dff39a33..322a4e307 100644
--- a/boot.php
+++ b/boot.php
@@ -2449,3 +2449,16 @@ function feed_salmonlinks($nick) {
return $salmon;
}}
+if(! function_exists('get_plink')) {
+function get_plink($item) {
+ $a = get_app();
+ $plink = (((x($item,'plink')) && (! $item['private'])) ? '<div class="wall-item-links-wrapper"><a href="'
+ . $item['plink'] . '" title="' . t('link to source') . '"><img src="' . $a->get_baseurl() . '/images/remote-link.gif" alt="' . t('link to source') . '" /></a></div>' : '');
+ return $plink;
+}}
+
+if(! function_exists('unamp')) {
+function unamp($s) {
+ return str_replace('&amp;', '&', $s);
+}}
+