Permalink
Browse files

Bugfix

  • Loading branch information...
1 parent 25f2a85 commit 08d32300cf40da32f9ce2e05ef928540344b6c5e @jamiemccarthy jamiemccarthy committed Oct 27, 2006
Showing with 8 additions and 3 deletions.
  1. +8 −3 plugins/Metamod/Metamod.pm
View
@@ -249,7 +249,9 @@ sub multiMetaMod {
return if !@orig_mmids;
my $orig_mmid_in = join(",", @orig_mmids);
my $uid_q = $self->sqlQuote($m2_user->{uid});
- my $reasons = $self->getReasons();
+
+ my $mod_reader = getObject("Slash::$constants->{m1_pluginname}", { db_type => 'reader' });
+ my $reasons = $mod_reader->getReasons();
my $m2able_reasons = join(",",
sort grep { $reasons->{$_}{m2able} }
keys %$reasons);
@@ -422,7 +424,9 @@ sub getInheritedM2sForMod {
sub getModForM2Inherit {
my($self, $mod_uid, $cid, $reason, $id) = @_;
my $mod_uid_q = $self->sqlQuote($mod_uid);
- my $reasons = $self->getReasons();
+ my $constants = getCurrentStatic();
+ my $mod_reader = getObject("Slash::$constants->{m1_pluginname}", { db_type => 'reader' });
+ my $reasons = $mod_reader->getReasons();
my $m2able_reasons = join(",",
sort grep { $reasons->{$_}{m2able} }
keys %$reasons);
@@ -674,7 +678,8 @@ sub getMetamodsForUserRaw {
my $constants = getCurrentStatic();
my $m2_wait_hours = $constants->{m2_wait_hours} || 12;
- my $reasons = $self->getReasons();
+ my $mod_reader = getObject("Slash::$constants->{m1_pluginname}", { db_type => 'reader' });
+ my $reasons = $mod_reader->getReasons();
my $m2able_reasons = join(",",
sort grep { $reasons->{$_}{m2able} }
keys %$reasons);

0 comments on commit 08d3230

Please sign in to comment.