diff --git a/ext/upload/theme.php b/ext/upload/theme.php index 863296c2..9d42098e 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -62,22 +62,31 @@ class UploadTheme extends Themelet { "; if($tl_enabled) { - $link = make_http(make_link("upload")); + $link = make_http(make_link("upload")); + if($config->get_bool('nice_urls')){ + $delimiter = '?'; + } else { + $delimiter = '&'; + } + { $title = "Upload to " . $config->get_string('title'); $html .= '

' . + $link . $delimiter . 'url="+location.href+"&tags="+prompt("enter tags")">' . $title . ' (Drag & drop onto your bookmarks toolbar, then click when looking at an image)'; - } - if($tl_enabled) { - $link = make_http(make_link("upload")); + } + { $title = "Danbooru to " . $config->get_string('title'); $html .= '

' . $title . ' (As above, Click on a Danbooru-run image page. (This also grabs the tags!))'; + + } + } + $page->set_title("Upload"); $page->set_heading("Upload"); $page->add_block(new NavBlock()); @@ -188,4 +197,4 @@ class UploadTheme extends Themelet { "; } } -?> +?> \ No newline at end of file