summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-09-16 12:25:53 +0200
committerAdrian Lang <lang@cosmocode.de>2010-09-16 12:29:20 +0200
commit40c347db9c34fc92dd5a6185ac8d8e31c819c5a1 (patch)
tree1fdc64be07a2ad464cbce9070c22d099681502b6 /inc/template.php
parentc95a5b7dd09aa1bd32e773cc1d582de72fb3e54c (diff)
downloadrpg-40c347db9c34fc92dd5a6185ac8d8e31c819c5a1.tar.gz
rpg-40c347db9c34fc92dd5a6185ac8d8e31c819c5a1.tar.bz2
Show digest time in actual subscription listing
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index 003febe46..595c5fc03 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1258,6 +1258,7 @@ function tpl_subscribe() {
global $ID;
global $lang;
global $conf;
+ $stime_days = $conf['subscribe_time']/60/60/24;
echo p_locale_xhtml('subscr_form');
echo '<h2>' . $lang['subscr_m_current_header'] . '</h2>';
@@ -1273,7 +1274,7 @@ function tpl_subscribe() {
} else {
echo '<code class="page">'.hsc(prettyprint_id($sub['target'])).'</code>';
}
- $sstl = $lang['subscr_style_'.$sub['style']];
+ $sstl = sprintf($lang['subscr_style_'.$sub['style']], $stime_days);
if(!$sstl) $sstl = hsc($sub['style']);
echo ' ('.$sstl.') ';
@@ -1298,7 +1299,6 @@ 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' => sprintf($lang['subscr_style_digest'], $stime_days),