From 9a2d694b6a6939ab5245d137de73b77b7f48c404 Mon Sep 17 00:00:00 2001 From: Daku Date: Wed, 21 Dec 2011 02:40:30 +0000 Subject: [PATCH] Made the replace form look similar to the new upload form. --- ext/upload/theme.php | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/ext/upload/theme.php b/ext/upload/theme.php index 3575d569..a18adbe5 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -17,7 +17,6 @@ class UploadTheme extends Themelet { $upload_list = ""; for($i=0; $i<$config->get_int('upload_count'); $i++) { $n = $i + 1; - $width = $tl_enabled ? "35%" : "80%"; $upload_list .= "
File
"; @@ -105,21 +104,18 @@ class UploadTheme extends Themelet { $tl_enabled = ($config->get_string("transload_engine", "none") != "none"); $upload_list = ''; - $width = $tl_enabled ? "35%" : "80%"; $upload_list .= " - - File - - - "; - if($tl_enabled) { - $upload_list .= " - - URL - - - "; - } + + File
"; + if($tl_enabled) { + $upload_list .=" + URL
+ + "; + } else { + $upload_list .= " + "; + } $max_size = $config->get_int('upload_size'); $max_kb = to_shorthand_int($max_size); @@ -133,7 +129,7 @@ class UploadTheme extends Themelet { .$thumbnail."
" .make_form(make_link("upload/replace/".$image_id), "POST", $multipart=True)." - +
$upload_list
Source