More linting, fix PHPDoc style.
This commit is contained in:
parent
daee99c1bc
commit
50686ac61e
3 changed files with 8 additions and 4 deletions
|
@ -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(
|
||||
|
|
|
@ -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"))."
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in a new issue