aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notification_by_mail.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-01-29 11:47:30 +0100
committerplegall <plg@piwigo.org>2016-01-29 11:47:30 +0100
commit77888174cff00f8bdf8b0a4c04aca64b3fdcc5f4 (patch)
tree2c1736b57df65d1e61521662f22f65a079fa61a7 /admin/notification_by_mail.php
parentbc7316639f9208089ed3ab3debf313aca8ff986a (diff)
fixes #411, auth keys details on notification forms
Diffstat (limited to 'admin/notification_by_mail.php')
-rw-r--r--admin/notification_by_mail.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/admin/notification_by_mail.php b/admin/notification_by_mail.php
index cd61964d0..ca3d4127c 100644
--- a/admin/notification_by_mail.php
+++ b/admin/notification_by_mail.php
@@ -719,6 +719,20 @@ switch ($page['mode'])
}
}
$template->assign($page['mode'], $tpl_var);
+
+ if ($conf['auth_key_duration'] > 0)
+ {
+ $template->assign(
+ 'auth_key_duration',
+ time_since(
+ strtotime('now -'.$conf['auth_key_duration'].' second'),
+ 'second',
+ null,
+ false
+ )
+ );
+ }
+
break;
}
}