summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-05-04 12:36:57 +0200
committerAdrian Lang <lang@cosmocode.de>2010-05-04 12:37:34 +0200
commit6b8f02cfe58b224607e5479f8469dde16c3169ac (patch)
treeca01fb9f4c7fc50c627bb69ba1e920de996213bf /inc/template.php
parentd796a89110fe12c694a301f9f9e0d65875ec6d17 (diff)
downloadrpg-6b8f02cfe58b224607e5479f8469dde16c3169ac.tar.gz
rpg-6b8f02cfe58b224607e5479f8469dde16c3169ac.tar.bz2
Show subscription time on management page
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index 3eda2f4af..c1e3e76ab 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1347,6 +1347,7 @@ function tpl_subscribe() {
global $INFO;
global $ID;
global $lang;
+ global $conf;
echo p_locale_xhtml('subscr_form');
echo '<h2>' . $lang['subscr_m_current_header'] . '</h2>';
@@ -1387,10 +1388,11 @@ function tpl_subscribe() {
$ID => '<code class="page">'.prettyprint_id($ID).'</code>',
$ns => '<code class="ns">'.prettyprint_id($ns).'</code>',
);
+ $stime_days = $conf['subscribe_time']/60/60/24;
$styles = array(
'every' => $lang['subscr_style_every'],
- 'digest' => $lang['subscr_style_digest'],
- 'list' => $lang['subscr_style_list'],
+ 'digest' => sprintf($lang['subscr_style_digest'], $stime_days),
+ 'list' => sprintf($lang['subscr_style_list'], $stime_days),
);
$form = new Doku_Form(array('id' => 'subscribe__form'));