Fixed small bug with transloading images. (If clean_urls were not enabled)
This commit is contained in:
parent
ef61a4cb4a
commit
12a480ed8b
1 changed files with 8 additions and 1 deletions
|
@ -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 .= '<p><a href="javascript:location.href="' .
|
||||
$link . '?url="+location.href+"&tags="+prompt("enter tags")">' .
|
||||
$link . $delimiter . 'url="+location.href+"&tags="+prompt("enter tags")">' .
|
||||
$title . '</a> (Drag & drop onto your bookmarks toolbar, then click when looking at an image)';
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue