mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
This commit is contained in:
parent
0d5db801ed
commit
f44cdaad87
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,8 @@ function getTemplateFromArray(itemsArray) {
|
|||
} else if (search == 'created') {
|
||||
m = moment.tz(itemsArray.created, _serverSystemTimezone).local();
|
||||
replace = m.fromNow();
|
||||
} else if (search == 'href' && !empty(replace) && !isValidURL(replace)) {
|
||||
replace = webSiteRootURL+replace;
|
||||
}
|
||||
template = template.replace(new RegExp('{' + search + '}', 'g'), replace);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue