diff options
author | Mario <mario@mariovavti.com> | 2020-05-10 07:53:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-05-10 07:53:21 +0000 |
commit | f473b5abfbbac4a6cadaf6fc26ed5fd950987ed6 (patch) | |
tree | 3d81c1a20c87aad7c55e3e4a2ffc40d1fd7f6ac6 /Zotlabs/Lib/Activity.php | |
parent | 22d68ddf08a53db3fafaf0dc8def07df3ed26c1b (diff) | |
download | volse-hubzilla-f473b5abfbbac4a6cadaf6fc26ed5fd950987ed6.tar.gz volse-hubzilla-f473b5abfbbac4a6cadaf6fc26ed5fd950987ed6.tar.bz2 volse-hubzilla-f473b5abfbbac4a6cadaf6fc26ed5fd950987ed6.zip |
as_vid_sort -> vid_sort
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 5c72a1175..2b88b6683 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1597,7 +1597,7 @@ class Activity { // sort function width decreasing - static function as_vid_sort($a,$b) { + static function vid_sort($a,$b) { if($a['width'] === $b['width']) return 0; return (($a['width'] > $b['width']) ? -1 : 1); @@ -1767,7 +1767,7 @@ class Activity { } } if($mps) { - usort($mps,'as_vid_sort'); + usort($mps,[ __CLASS__, 'vid_sort' ]); foreach($mps as $m) { if(intval($m['width']) < 500) { $s['body'] .= "\n\n" . '[video]' . $m['href'] . '[/video]'; |