Permalink
Browse files

Bugfix: Slash.pm _comments_getError was not exported

  • Loading branch information...
1 parent 58196ef commit a41bc6772d0e0b2bb118e90d66df878ab5a1fd68 @jamiemccarthy jamiemccarthy committed Dec 1, 2006
Showing with 8 additions and 8 deletions.
  1. +4 −4 plugins/Moderation/Moderation.pm
  2. +4 −4 plugins/TagModeration/TagModeration.pm
@@ -890,17 +890,17 @@ sub moderateCheck {
# all of these can be removed in favor of reskeys, later
if (!dbAvailable('write_comments')) {
- return { msg => _comments_getError('comment_db_down') };
+ return { msg => Slash::_comments_getError('comment_db_down') };
}
if (!$constants->{m1}) {
- return { msg => _comments_getError('no_moderation') };
+ return { msg => Slash::_comments_getError('no_moderation') };
}
if ($discussion->{type} eq 'archived' &&
!$constants->{comments_moddable_archived} &&
!$form->{meta_mod_only}) {
- return { msg => _comments_getError('archive_error') };
+ return { msg => Slash::_comments_getError('archive_error') };
}
my $return = {};
@@ -909,7 +909,7 @@ sub moderateCheck {
&& $user->{seclev} >= $constants->{authors_unlimited}
) || $user->{acl}{modpoints_always};
if ($return->{count}) {
- $return->{msg} = _comments_getError('already posted');
+ $return->{msg} = Slash::_comments_getError('already posted');
}
return $return;
@@ -890,17 +890,17 @@ sub moderateCheck {
# all of these can be removed in favor of reskeys, later
if (!dbAvailable('write_comments')) {
- return { msg => _comments_getError('comment_db_down') };
+ return { msg => Slash::_comments_getError('comment_db_down') };
}
if (!$constants->{m1}) {
- return { msg => _comments_getError('no_moderation') };
+ return { msg => Slash::_comments_getError('no_moderation') };
}
if ($discussion->{type} eq 'archived' &&
!$constants->{comments_moddable_archived} &&
!$form->{meta_mod_only}) {
- return { msg => _comments_getError('archive_error') };
+ return { msg => Slash::_comments_getError('archive_error') };
}
my $return = {};
@@ -909,7 +909,7 @@ sub moderateCheck {
&& $user->{seclev} >= $constants->{authors_unlimited}
) || $user->{acl}{modpoints_always};
if ($return->{count}) {
- $return->{msg} = _comments_getError('already posted');
+ $return->{msg} = Slash::_comments_getError('already posted');
}
return $return;

0 comments on commit a41bc67

Please sign in to comment.