From 3f7fad35280b411c546b629673e31584bf956a30 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 15 Jun 2015 21:50:14 +0200 Subject: [PATCH 4/6] Bug 14383 admin: Fix some typos in comments and documentation Most of them were found and fixed using codespell. Signed-off-by: Stefan Weil --- admin/aqbudgets.pl | 6 +++--- admin/aqplan.pl | 2 +- admin/check_parent_total.pl | 2 +- admin/env_tz_test.pl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl index 4540391..364d512 100755 --- a/admin/aqbudgets.pl +++ b/admin/aqbudgets.pl @@ -60,7 +60,7 @@ my $op = $input->param('op') || 'list'; # see if the user want to see all budgets or only owned ones by default my $show_mine = $input->param('show_mine') // 0; -# IF USER DOESNT HAVE PERM FOR AN 'ADD', THEN REDIRECT TO THE DEFAULT VIEW... +# IF USER DOESN'T HAVE PERM FOR AN 'ADD', THEN REDIRECT TO THE DEFAULT VIEW... if (not defined $template->{VARS}->{'CAN_user_acquisition_budget_add_del'} and $op eq 'add_form') { @@ -282,7 +282,7 @@ if ( $op eq 'list' ) { $budget->{'budget_lock'} = 1; } - # if a budget search doesnt match, next + # if a budget search doesn't match, next if ($filter_budgetname) { next unless $budget->{budget_code} =~ m/$filter_budgetname/i @@ -303,7 +303,7 @@ if ( $op eq 'list' ) { $available_total += $budget->{total_remaining}; } -# if amount == 0 dont display... +# if amount == 0 don't display... delete $budget->{'budget_unalloc_sublevel'} if (!defined $budget->{'budget_unalloc_sublevel'} or $budget->{'budget_unalloc_sublevel'} == 0); diff --git a/admin/aqplan.pl b/admin/aqplan.pl index 864c5b0..f55acc2 100755 --- a/admin/aqplan.pl +++ b/admin/aqplan.pl @@ -330,7 +330,7 @@ foreach my $budget (@budgets) { or $authcat eq 'BRANCHES' or $authcat eq 'MONTHS' ) { - # but skip budgets that dont match the current auth-category + # but skip budgets that don't match the current auth-category next if ( $budget->{'sort1_authcat'} ne $authcat && $budget->{'sort2_authcat'} ne $authcat ); } diff --git a/admin/check_parent_total.pl b/admin/check_parent_total.pl index a2d5cbf..10f1036 100755 --- a/admin/check_parent_total.pl +++ b/admin/check_parent_total.pl @@ -67,7 +67,7 @@ if ($parent) { my $sum = $sth->fetchrow_hashref; $sth->finish; $sub_unalloc = $parent->{'budget_amount'} - $sum->{sum}; -# TRICKY.. , IF THE PARENT IS THE CURRENT PARENT - THEN SUBSTRACT CURRENT BUDGET FROM TOTAL +# TRICKY.. , IF THE PARENT IS THE CURRENT PARENT - THEN SUBTRACT CURRENT BUDGET FROM TOTAL $sub_unalloc += $budget->{'budget_amount'} if ( $budget->{'budget_parent_id'} == $parent_id ) ; } diff --git a/admin/env_tz_test.pl b/admin/env_tz_test.pl index 533bda0..ecbb93d 100755 --- a/admin/env_tz_test.pl +++ b/admin/env_tz_test.pl @@ -86,7 +86,7 @@ See http://dev.mysql.com/doc/refman/5.0/en/time-zone-support.html =head2 cron/crontab -Current versions of cron in debian allow ENV variables to be set in the lines preceeding +Current versions of cron in debian allow ENV variables to be set in the lines preceding scheduled commands. They will be exported to the environment of the scheduled job. This is an example for crontab: -- 2.1.4