Timeline & Clean Blog: removed reference from function

https://board.s9y.org/viewtopic.php?f=3&t=24074
This commit is contained in:
Don Chambers 2018-09-06 10:24:03 -05:00
parent ef557fbb6a
commit 368dca4379
4 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ function distanceOfTimeInWords($fromTime, $toTime = 0) {
// call from tpl as {elapsed_time_words from_time=$comment.timestamp} // call from tpl as {elapsed_time_words from_time=$comment.timestamp}
$serendipity['smarty']->register_function('elapsed_time_words', 'timeAgoInWords'); $serendipity['smarty']->register_function('elapsed_time_words', 'timeAgoInWords');
function timeAgoInWords($params, &$smarty) { function timeAgoInWords($params, $smarty) {
return distanceOfTimeInWords($params['from_time'], time()); return distanceOfTimeInWords($params['from_time'], time());
} }

View File

@ -1,6 +1,6 @@
Name: Clean Blog Name: Clean Blog
Author: s9y theme by Don Chambers. Original bootstrap theme by Iron Summit Media Strategies, LLC. 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 Require Serendipity: 2.0
Backend: No Backend: No
Recommended: Yes Recommended: Yes

View File

@ -78,7 +78,7 @@ function distanceOfTimeInWords($fromTime, $toTime = 0) {
// call from tpl as {elapsed_time_words from_time=$comment.timestamp} // call from tpl as {elapsed_time_words from_time=$comment.timestamp}
$serendipity['smarty']->register_function('elapsed_time_words', 'timeAgoInWords'); $serendipity['smarty']->register_function('elapsed_time_words', 'timeAgoInWords');
function timeAgoInWords($params, &$smarty) { function timeAgoInWords($params, $smarty) {
return distanceOfTimeInWords($params['from_time'], time()); return distanceOfTimeInWords($params['from_time'], time());
} }

View File

@ -1,6 +1,6 @@
Name: Timeline Name: Timeline
Author: Don Chambers Author: Don Chambers
Date: 2018-04-09 Date: 2018-09-06
Require Serendipity: 2.0 Require Serendipity: 2.0
Backend: No Backend: No
Recommended: Yes Recommended: Yes