From 56ffd65fe81b0415998ebde15d9e68e15202309a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armando=20L=C3=BCscher?= Date: Mon, 13 May 2019 01:51:19 +0200 Subject: [PATCH] Fix some minor typos and grammar. --- lib/Lutim/Controller/Image.pm | 8 ++++---- lib/Lutim/DB/Image.pm | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Lutim/Controller/Image.pm b/lib/Lutim/Controller/Image.pm index e3bbc62..3bb8349 100644 --- a/lib/Lutim/Controller/Image.pm +++ b/lib/Lutim/Controller/Image.pm @@ -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'); diff --git a/lib/Lutim/DB/Image.pm b/lib/Lutim/DB/Image.pm index 8f5a1f1..9722ee8 100644 --- a/lib/Lutim/DB/Image.pm +++ b/lib/Lutim/DB/Image.pm @@ -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 : 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 : 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 : 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 : integer @@ -241,7 +241,7 @@ sub to_hash { =item B : none -=item B : counts the number of record which path is null +=item B : counts the number of records whose path is null =item B : integer @@ -255,7 +255,7 @@ sub to_hash { =item B : none -=item B : counts the number of record which path is not null +=item B : counts the number of records whose path is not null =item B : integer