Fixed small bug with transloading images. (If clean_urls were not enabled)

This commit is contained in:
green-ponies (jgen) 2011-11-03 16:55:04 -04:00
parent ef61a4cb4a
commit 12a480ed8b

View file

@ -64,8 +64,15 @@ class UploadTheme extends Themelet {
if($tl_enabled) { if($tl_enabled) {
$link = make_http(make_link("upload")); $link = make_http(make_link("upload"));
$title = "Upload to " . $config->get_string('title'); $title = "Upload to " . $config->get_string('title');
if($config->get_bool('nice_urls')){
$delimiter = '?';
} else {
$delimiter = '&';
}
$html .= '<p><a href="javascript:location.href=&quot;' . $html .= '<p><a href="javascript:location.href=&quot;' .
$link . '?url=&quot;+location.href+&quot;&amp;tags=&quot;+prompt(&quot;enter tags&quot;)">' . $link . $delimiter . 'url=&quot;+location.href+&quot;&amp;tags=&quot;+prompt(&quot;enter tags&quot;)">' .
$title . '</a> (Drag & drop onto your bookmarks toolbar, then click when looking at an image)'; $title . '</a> (Drag & drop onto your bookmarks toolbar, then click when looking at an image)';
} }