From 368dca4379a08e33acdd5b93d3fef9b8e47f9bbf Mon Sep 17 00:00:00 2001 From: Don Chambers Date: Thu, 6 Sep 2018 10:24:03 -0500 Subject: [PATCH] Timeline & Clean Blog: removed reference from function https://board.s9y.org/viewtopic.php?f=3&t=24074 --- templates/clean-blog/config.inc.php | 2 +- templates/clean-blog/info.txt | 2 +- templates/timeline/config.inc.php | 2 +- templates/timeline/info.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/clean-blog/config.inc.php b/templates/clean-blog/config.inc.php index 74468bf1..2e08caf3 100644 --- a/templates/clean-blog/config.inc.php +++ b/templates/clean-blog/config.inc.php @@ -55,7 +55,7 @@ function distanceOfTimeInWords($fromTime, $toTime = 0) { // call from tpl as {elapsed_time_words from_time=$comment.timestamp} $serendipity['smarty']->register_function('elapsed_time_words', 'timeAgoInWords'); -function timeAgoInWords($params, &$smarty) { +function timeAgoInWords($params, $smarty) { return distanceOfTimeInWords($params['from_time'], time()); } diff --git a/templates/clean-blog/info.txt b/templates/clean-blog/info.txt index b407c4cd..0833777f 100644 --- a/templates/clean-blog/info.txt +++ b/templates/clean-blog/info.txt @@ -1,6 +1,6 @@ Name: Clean Blog Author: s9y theme by Don Chambers. Original bootstrap theme by Iron Summit Media Strategies, LLC. -Date: 2018-04-09 +Date: 2018-09-06 Require Serendipity: 2.0 Backend: No Recommended: Yes \ No newline at end of file diff --git a/templates/timeline/config.inc.php b/templates/timeline/config.inc.php index 80323257..5177e2f2 100644 --- a/templates/timeline/config.inc.php +++ b/templates/timeline/config.inc.php @@ -78,7 +78,7 @@ function distanceOfTimeInWords($fromTime, $toTime = 0) { // call from tpl as {elapsed_time_words from_time=$comment.timestamp} $serendipity['smarty']->register_function('elapsed_time_words', 'timeAgoInWords'); -function timeAgoInWords($params, &$smarty) { +function timeAgoInWords($params, $smarty) { return distanceOfTimeInWords($params['from_time'], time()); } diff --git a/templates/timeline/info.txt b/templates/timeline/info.txt index 2f4dd723..19836bc9 100644 --- a/templates/timeline/info.txt +++ b/templates/timeline/info.txt @@ -1,6 +1,6 @@ Name: Timeline Author: Don Chambers -Date: 2018-04-09 +Date: 2018-09-06 Require Serendipity: 2.0 Backend: No Recommended: Yes \ No newline at end of file