diff --git a/ext/image/main.php b/ext/image/main.php index 6f72a557..c7ffbe6d 100644 --- a/ext/image/main.php +++ b/ext/image/main.php @@ -72,7 +72,7 @@ class ImageReplaceEvent extends Event { * @param $image * The image object of the new image to use */ - public function ImageReplaceEvent($id, Image $image) { + public function ImageReplaceEvent(/*int*/ $id, Image $image) { $this->id = $id; $this->image = $image; } @@ -81,7 +81,7 @@ class ImageReplaceEvent extends Event { class ImageReplaceException extends SCoreException { var $error; - public function __construct($error) { + public function __construct(/*string*/ $error) { $this->error = $error; } } diff --git a/ext/upload/theme.php b/ext/upload/theme.php index f5aa649e..fd732fbc 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -237,29 +237,18 @@ class UploadTheme extends Themelet { global $config, $page; $tl_enabled = ($config->get_string("transload_engine", "none") != "none"); - $js2 = 'javascript:$(function() { - $("#data").hide(); - $("#data").val(""); - $("#url").show(); });'; - - $js1 = 'javascript:$(function() { - $("#url").hide(); - $("#url").val(""); - $("#data").show(); });'; - - $upload_list = ''; - $upload_list .= " + $upload_list = "
Replacing Image ID ".$image_id."
Please note: You will have to refresh the image page, or empty your browser cache.