Skip to content

Commit

Permalink
[#124 state:committed] Fixed warnings spurious warnings
Browse files Browse the repository at this point in the history
* '"my" variable $q masks earlier declaration in same scope at lib/MT/CMS/Entry.pm line 489.'
* '"my" variable $q masks earlier declaration in same scope at lib/MT/CMS/Template.pm line 1373.'
  • Loading branch information
juanbro authored and Open Melody Software Group committed Nov 24, 2009
1 parent 68af470 commit ad66845
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/MT/CMS/Entry.pm
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,12 @@ sub build_junk_table {
sub list {
my $app = shift;
my ($param) = @_;
my $q = $app->query;
my $q = $app->query;
$param ||= {};
require MT::Entry;
my $type = $q->param('type') || MT::Entry->class_type;
my $pkg = $app->model($type) or return "Invalid request.";

my $q = $app->query;
my $perms = $app->permissions;
unless ($app->user->is_superuser) {
if ( $type eq 'page' ) {
Expand Down
1 change: 0 additions & 1 deletion lib/MT/CMS/Template.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,6 @@ sub pre_save {
my $interval = $q->param('cache_expire_interval');
my $sec = _get_interval( $period, $interval );
$obj->cache_expire_interval($sec) if defined $sec;
my $q = $app->query;
my @events;

foreach my $name ( $q->param('cache_expire_event') ) {
Expand Down

0 comments on commit ad66845

Please sign in to comment.