summaryrefslogtreecommitdiff
path: root/lib/viewers/image.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-08-02 11:34:51 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-08-02 11:34:51 (GMT)
commitc24521b09d67275432c3cfce65b4b6b0db4c460a (patch)
tree91d0bac387aa13f7ba5d62b755757b63c40d3182 /lib/viewers/image.php
parentd42cb4adaf1052cdca28cffaf303176cc7b73f8a (diff)
downloadkolab-chwala-c24521b09d67275432c3cfce65b4b6b0db4c460a.tar.gz
Generate script URL when $_SERVER['SCRIPT_URI'] doesn't exist
Diffstat (limited to 'lib/viewers/image.php')
-rw-r--r--lib/viewers/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/viewers/image.php b/lib/viewers/image.php
index 06fcb3e..fee9b3e 100644
--- a/lib/viewers/image.php
+++ b/lib/viewers/image.php
@@ -60,7 +60,7 @@ class file_viewer_image extends file_viewer
*/
public function href($file, $mimetype = null)
{
- $href = $_SERVER['SCRIPT_URI'] . '?method=file_get'
+ $href = file_utils::script_uri() . '?method=file_get'
. '&file=' . urlencode($file)
. '&token=' . urlencode(session_id());