summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorlisps <stummp@loewen.de>2013-11-21 15:50:52 +0100
committerlisps <stummp@loewen.de>2013-11-21 15:50:52 +0100
commit5c2eed9a193e9341fbfee63d4a973898acdc5ee5 (patch)
treed4c1a321973ed74700c53e32282e459afb2e3986 /inc/html.php
parentee33e0c5628d9cab52676a5aa2f55356c563c209 (diff)
downloadrpg-5c2eed9a193e9341fbfee63d4a973898acdc5ee5.tar.gz
rpg-5c2eed9a193e9341fbfee63d4a973898acdc5ee5.tar.bz2
add parameter at($DATE_AT) and mind revisions
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/html.php b/inc/html.php
index b48a17fc5..5b79ab659 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -207,6 +207,7 @@ function html_show($txt=null){
global $REV;
global $HIGH;
global $INFO;
+ global $DATE_AT;
//disable section editing for old revisions or in preview
if($txt || $REV){
$secedit = false;
@@ -226,8 +227,8 @@ function html_show($txt=null){
echo '</div></div>';
}else{
- if ($REV) print p_locale_xhtml('showrev');
- $html = p_wiki_xhtml($ID,$REV,true);
+ if ($REV||$DATE_AT) print p_locale_xhtml('showrev');
+ $html = p_wiki_xhtml($ID,$REV,true,$DATE_AT);
$html = html_secedit($html,$secedit);
if($INFO['prependTOC']) $html = tpl_toc(true).$html;
$html = html_hilight($html,$HIGH);