From 12a480ed8b612e7f804e5e49890b3b8a0405e257 Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" Date: Thu, 3 Nov 2011 16:55:04 -0400 Subject: [PATCH] Fixed small bug with transloading images. (If clean_urls were not enabled) --- ext/upload/theme.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ext/upload/theme.php b/ext/upload/theme.php index f26905c0..a86d6f58 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -64,8 +64,15 @@ class UploadTheme extends Themelet { if($tl_enabled) { $link = make_http(make_link("upload")); $title = "Upload to " . $config->get_string('title'); + + if($config->get_bool('nice_urls')){ + $delimiter = '?'; + } else { + $delimiter = '&'; + } + $html .= '

' . + $link . $delimiter . 'url="+location.href+"&tags="+prompt("enter tags")">' . $title . ' (Drag & drop onto your bookmarks toolbar, then click when looking at an image)'; }