From 50af37507f959e3c5c574b2d728046a4635bb956 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 11 May 2019 10:46:30 +0200 Subject: [PATCH] fixing v2 TTL --- js/privatebin.js | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 7e73bf2b..e8f4a8b5 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -1639,7 +1639,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { } else if (pasteMetaData.expire_date) { // display paste expiration - let expiration = Helper.secondsToHuman(pasteMetaData.remaining_time), + let expiration = Helper.secondsToHuman(pasteMetaData.time_to_live || pasteMetaData.remaining_time), expirationLabel = [ 'This document will expire in %d ' + expiration[1] + '.', 'This document will expire in %d ' + expiration[1] + 's.' diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 3b4685f5..519809bc 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -71,7 +71,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 8b63f6b9..ed4f0278 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +