summaryrefslogtreecommitdiff
path: root/inc/template.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/template.php
parentee33e0c5628d9cab52676a5aa2f55356c563c209 (diff)
downloadrpg-5c2eed9a193e9341fbfee63d4a973898acdc5ee5.tar.gz
rpg-5c2eed9a193e9341fbfee63d4a973898acdc5ee5.tar.bz2
add parameter at($DATE_AT) and mind revisions
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index 60e178d1a..ac85059a8 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1031,6 +1031,7 @@ function tpl_img_getTag($tags, $alt = '', $src = null) {
function tpl_img($maxwidth = 0, $maxheight = 0, $link = true, $params = null) {
global $IMG;
global $INPUT;
+ global $REV;
$w = tpl_img_getTag('File.Width');
$h = tpl_img_getTag('File.Height');
@@ -1055,8 +1056,8 @@ function tpl_img($maxwidth = 0, $maxheight = 0, $link = true, $params = null) {
}
//prepare URLs
- $url = ml($IMG, array('cache'=> $INPUT->str('cache')), true, '&');
- $src = ml($IMG, array('cache'=> $INPUT->str('cache'), 'w'=> $w, 'h'=> $h), true, '&');
+ $url = ml($IMG, array('cache'=> $INPUT->str('cache'),'rev'=>$REV), true, '&');
+ $src = ml($IMG, array('cache'=> $INPUT->str('cache'),'rev'=>$REV, 'w'=> $w, 'h'=> $h), true, '&');
//prepare attributes
$alt = tpl_img_getTag('Simple.Title');