aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/stats.php2
-rw-r--r--template/default/admin/stats.vtp1
2 files changed, 3 insertions, 0 deletions
diff --git a/admin/stats.php b/admin/stats.php
index 26dee15f1..345d4c669 100644
--- a/admin/stats.php
+++ b/admin/stats.php
@@ -89,12 +89,14 @@ for ( $i = 0; $i <= MAX_DAYS; $i++ )
{
$vtp->addSession( $sub, 'expanded' );
$vtp->closeSession( $sub, 'expanded' );
+ $vtp->setVar( $sub, 'day.open_or_close', $lang['close'] );
$local_expand = array_remove( $local_expand, $i );
}
else
{
$vtp->addSession( $sub, 'collapsed' );
$vtp->closeSession( $sub, 'collapsed' );
+ $vtp->setVar( $sub, 'day.open_or_close', $lang['open'] );
array_push( $local_expand, $i );
}
$url = './admin.php?page=stats&amp;last_days='.$_GET['last_days'];
diff --git a/template/default/admin/stats.vtp b/template/default/admin/stats.vtp
index c5ad4fb30..74b3ef69c 100644
--- a/template/default/admin/stats.vtp
+++ b/template/default/admin/stats.vtp
@@ -65,6 +65,7 @@
<td colspan="6">
<a href="{#url}"><!--VTP_collapsed--><img src="../template/{#user_template}/admin/images/collapsed.gif" style="border:none;" /><!--/VTP_collapsed--><!--VTP_expanded--><img src="../template/{#user_template}/admin/images/expanded.gif" style="border:none;" /><!--/VTP_expanded--></a>
<span style="font-weight:bold;">{#name}</span> [ {#nb_pages} {#stats_pages_seen} - {#nb_visitors} {#stats_visitors} ]
+ [ <a href="{#url}">{#open_or_close}</a> ]
</td>
</tr>
<!--VTP_line-->