diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-09-29 18:29:20 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-09-29 18:29:20 +0200 |
commit | 17553fca1944b80c25826f2f71620bbf64e1a49b (patch) | |
tree | 45716d17564d0ea39cda4b0f6961b757e382c068 /inc/common.php | |
parent | 2f981761b3f5b7c8dcc53b8026d9fd3c499a7e1e (diff) | |
parent | 80d9f3ddb3a602960d23f1849c1ad6287c4f9d92 (diff) | |
download | rpg-17553fca1944b80c25826f2f71620bbf64e1a49b.tar.gz rpg-17553fca1944b80c25826f2f71620bbf64e1a49b.tar.bz2 |
Merge pull request #624 from lisps/revisions
date_at support
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index e56285f62..11b8a7e26 100644 --- a/inc/common.php +++ b/inc/common.php @@ -438,6 +438,8 @@ function idfilter($id, $ue = true) { function wl($id = '', $urlParameters = '', $absolute = false, $separator = '&') { global $conf; if(is_array($urlParameters)) { + if(isset($urlParameters['rev']) && !$urlParameters['rev']) unset($urlParameters['rev']); + if(isset($urlParameters['at']) && $conf['date_at_format']) $urlParameters['at'] = date($conf['date_at_format'],$urlParameters['at']); $urlParameters = buildURLparams($urlParameters, $separator); } else { $urlParameters = str_replace(',', $separator, $urlParameters); @@ -544,6 +546,7 @@ function ml($id = '', $more = '', $direct = true, $sep = '&', $abs = false) if(empty($more['w'])) unset($more['w']); if(empty($more['h'])) unset($more['h']); if(isset($more['id']) && $direct) unset($more['id']); + if(isset($more['rev']) && !$more['rev']) unset($more['rev']); $more = buildURLparams($more, $sep); } else { $matches = array(); |