Verified Commit 56ffd65f authored by Armando Lüscher's avatar Armando Lüscher Committed by Luc Didry
Browse files

Fix some minor typos and grammar.

parent 4a37e722
......@@ -196,7 +196,7 @@ sub modify {
return $c->redirect_to('/');
}
} else {
$c->app->log->info('[UNSUCCESSFUL] someone tried to modify '.$short.' but it does\'nt exist.') unless $c->config('quiet_logs');
$c->app->log->info('[UNSUCCESSFUL] someone tried to modify '.$short.' but it doesn\'t exist.') unless $c->config('quiet_logs');
# Image never existed
my $msg = $c->l('Unable to find the image %1.', $short);
......@@ -263,7 +263,7 @@ sub delete {
}
);
} else {
$c->app->log->info('[UNSUCCESSFUL] someone tried to delete '.$short.' but it does\'nt exist.') unless $c->config('quiet_logs');
$c->app->log->info('[UNSUCCESSFUL] someone tried to delete '.$short.' but it doesn\'t exist.') unless $c->config('quiet_logs');
# Image never existed
return $c->respond_to(
......@@ -653,7 +653,7 @@ sub short {
}
} elsif ($image->path && !$image->enabled) {
# Log access try
$c->app->log->info('[NOT FOUND] someone tried to view '.$short.' but it does\'nt exist anymore.') unless $c->config('quiet_logs');
$c->app->log->info('[NOT FOUND] someone tried to view '.$short.' but it doesn\'t exist anymore.') unless $c->config('quiet_logs');
# Warn user
$c->flash(
......@@ -747,7 +747,7 @@ sub zip {
}
} elsif ($image->path && !$image->enabled) {
# Log access try
$c->app->log->info('[NOT FOUND] someone tried to view '.$short.' but it does\'nt exist anymore.') unless $c->config('quiet_logs');
$c->app->log->info('[NOT FOUND] someone tried to view '.$short.' but it doesn\'t exist anymore.') unless $c->config('quiet_logs');
# Warn user
$zip->addString(encode('UTF-8', $c->l('Unable to find the image: it has been deleted.')), 'images/'.$image->filename.'.txt');
......
......@@ -129,7 +129,7 @@ sub to_hash {
mod_token => $c->mod_token,
width => $c->width,
height => $c->height,
height => $c->iv
iv => $c->iv
};
}
......@@ -156,7 +156,7 @@ sub to_hash {
=item B<Arguments> : two mandatory parameters: one integer, the delete_at_day attribute, a boolean (0 or 1), the enabled attribute
an optional parameter: an unix timestamp
=item B<Purpose> : count how many images there is with the given delete_at_day attribute, and enabled or disabled, depending on the given enabled attribute
=item B<Purpose> : count how many images there are with the given delete_at_day attribute, and enabled or disabled, depending on the given enabled attribute
if the optional parameter is given, count only images according to the given mandatory parameters that were created before the timestamp
=item B<Returns> : integer
......@@ -241,7 +241,7 @@ sub to_hash {
=item B<Arguments> : none
=item B<Purpose> : counts the number of record which path is null
=item B<Purpose> : counts the number of records whose path is null
=item B<Returns> : integer
......@@ -255,7 +255,7 @@ sub to_hash {
=item B<Arguments> : none
=item B<Purpose> : counts the number of record which path is not null
=item B<Purpose> : counts the number of records whose path is not null
=item B<Returns> : integer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment