aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-09 16:23:58 -0800
committerfriendica <info@friendica.com>2014-01-09 16:23:58 -0800
commita78d9b973d6391e3a15f8a3ff2fe586a4bffe08c (patch)
treee5367a6951861eb88887c183e97ff0f3c1ba939a /include/text.php
parentdb8ebc9f375478bddc0f48d972e3acfbde80685a (diff)
downloadvolse-hubzilla-a78d9b973d6391e3a15f8a3ff2fe586a4bffe08c.tar.gz
volse-hubzilla-a78d9b973d6391e3a15f8a3ff2fe586a4bffe08c.tar.bz2
volse-hubzilla-a78d9b973d6391e3a15f8a3ff2fe586a4bffe08c.zip
simplify permalink selection logic
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index b47f0518a..f5c440e4a 100755
--- a/include/text.php
+++ b/include/text.php
@@ -1389,9 +1389,9 @@ function feed_salmonlinks($nick) {
}
-function get_plink($item,$mode) {
+function get_plink($item,$conversation_mode = true) {
$a = get_app();
- if(($mode == 'display') || ($mode == 'channel') || ($mode == 'network'))
+ if($conversation_mode)
$key = 'plink';
else
$key = 'llink';