diff --git a/ext/image/main.php b/ext/image/main.php index ccb07112..d9a2edbb 100644 --- a/ext/image/main.php +++ b/ext/image/main.php @@ -418,7 +418,7 @@ class ImageIO extends Extension { inspected later by an admin? */ log_debug("image", "Removing image with hash ".$existing->hash); - $existing->remove_image_only(); // Actually delete the old image file from disk + $existing->remove_image_only(); // Actually delete the old image file from disk // Update the data in the database. $database->Execute( diff --git a/ext/image/theme.php b/ext/image/theme.php index 36145c07..072888bf 100644 --- a/ext/image/theme.php +++ b/ext/image/theme.php @@ -4,7 +4,8 @@ class ImageIOTheme extends Themelet { * Display a link to delete an image * (Added inline Javascript to confirm the deletion) * - * @param $image_id The image to delete + * @param $image_id integer The image to delete + * @return string */ public function get_deleter_html(/*int*/ $image_id) { global $config; @@ -18,11 +19,12 @@ class ImageIOTheme extends Themelet { return $html; } - + /** * Display link to replace the image * - * @param $image_id The image to replace + * @param $image_id integer The image to replace + * @return string */ public function get_replace_html(/*int*/ $image_id) { $html = make_form(make_link("image/replace"))." diff --git a/ext/index/script.js b/ext/index/script.js index 6842ef34..7fd63d6a 100644 --- a/ext/index/script.js +++ b/ext/index/script.js @@ -1,3 +1,5 @@ +/*jshint bitwise:false, curly:true, eqeqeq:true, evil:true, forin:false, noarg:true, noempty:true, nonew:true, undef:false, strict:false, browser:true, jquery:true */ + $(function() { var blocked_tags = ($.cookie("ui-blocked-tags") || "").split(" "); var needs_refresh = false;