]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Merge pull request #4393 from MrPetovan/task/3878-move-include-tags-to-src
[friendica.git] / mod / photos.php
index e86c7271a098b19e574c27a9a77249b89f75907c..6742497ac320c3c9249f5aca4b84b43f8014ff9f 100644 (file)
@@ -23,6 +23,7 @@ use Friendica\Object\Image;
 use Friendica\Protocol\DFRN;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Map;
+use Friendica\Util\Temporal;
 
 require_once 'include/items.php';
 require_once 'include/acl_selectors.php';
@@ -1622,7 +1623,7 @@ function photos_content(App $a)
                                                '$sparkle' => $sparkle,
                                                '$title' => $title_e,
                                                '$body' => $body_e,
-                                               '$ago' => relative_date($item['created']),
+                                               '$ago' => Temporal::getRelativeDate($item['created']),
                                                '$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''),
                                                '$drop' => $drop,
                                                '$comment' => $comment