aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-02 17:32:43 -0800
committerzotlabs <mike@macgirvin.com>2017-03-02 17:32:43 -0800
commite58dc726c5e40ff30942739f86d2329fb29f763c (patch)
tree385c384fb9ad3837779b64a5ee5b19abf1dae2ee /include/text.php
parentd7e24b24945a909f2bf2825200234db622a8e9fb (diff)
downloadvolse-hubzilla-e58dc726c5e40ff30942739f86d2329fb29f763c.tar.gz
volse-hubzilla-e58dc726c5e40ff30942739f86d2329fb29f763c.tar.bz2
volse-hubzilla-e58dc726c5e40ff30942739f86d2329fb29f763c.zip
activity widget - like the forum widget but represents unseen activity by author. Still experimental until it can be tested with diaspora xchans, which may require additional urlencoding.
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 63248a0a6..1abed81bf 100644
--- a/include/text.php
+++ b/include/text.php
@@ -854,6 +854,11 @@ function tag_sort_length($a,$b) {
return((mb_strlen($b) < mb_strlen($a)) ? (-1) : 1);
}
+function total_sort($a,$b) {
+ if($a['total'] == $b['total'])
+ return 0;
+ return(($b['total'] < $a['total']) ? 1 : (-1));
+}
/**