Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bugfix: Slash.pm _comments_getError was not exported

  • Loading branch information...
commit a41bc6772d0e0b2bb118e90d66df878ab5a1fd68 1 parent 58196ef
Jamie McCarthy authored December 01, 2006
8  plugins/Moderation/Moderation.pm
@@ -890,17 +890,17 @@ sub moderateCheck {
890 890
 
891 891
 	# all of these can be removed in favor of reskeys, later
892 892
 	if (!dbAvailable('write_comments')) {
893  
-		return { msg => _comments_getError('comment_db_down') };
  893
+		return { msg => Slash::_comments_getError('comment_db_down') };
894 894
 	}
895 895
 
896 896
 	if (!$constants->{m1}) {
897  
-		return { msg => _comments_getError('no_moderation') };
  897
+		return { msg => Slash::_comments_getError('no_moderation') };
898 898
 	}
899 899
 
900 900
 	if ($discussion->{type} eq 'archived' &&
901 901
 	   !$constants->{comments_moddable_archived} &&
902 902
 	   !$form->{meta_mod_only}) {
903  
-		return { msg => _comments_getError('archive_error') };
  903
+		return { msg => Slash::_comments_getError('archive_error') };
904 904
 	}
905 905
 
906 906
 	my $return = {};
@@ -909,7 +909,7 @@ sub moderateCheck {
909 909
 			&& $user->{seclev} >= $constants->{authors_unlimited}
910 910
 		)       || $user->{acl}{modpoints_always};
911 911
 	if ($return->{count}) {
912  
-		$return->{msg} = _comments_getError('already posted');
  912
+		$return->{msg} = Slash::_comments_getError('already posted');
913 913
 	}
914 914
 
915 915
 	return $return;
8  plugins/TagModeration/TagModeration.pm
@@ -890,17 +890,17 @@ sub moderateCheck {
890 890
 
891 891
 	# all of these can be removed in favor of reskeys, later
892 892
 	if (!dbAvailable('write_comments')) {
893  
-		return { msg => _comments_getError('comment_db_down') };
  893
+		return { msg => Slash::_comments_getError('comment_db_down') };
894 894
 	}
895 895
 
896 896
 	if (!$constants->{m1}) {
897  
-		return { msg => _comments_getError('no_moderation') };
  897
+		return { msg => Slash::_comments_getError('no_moderation') };
898 898
 	}
899 899
 
900 900
 	if ($discussion->{type} eq 'archived' &&
901 901
 	   !$constants->{comments_moddable_archived} &&
902 902
 	   !$form->{meta_mod_only}) {
903  
-		return { msg => _comments_getError('archive_error') };
  903
+		return { msg => Slash::_comments_getError('archive_error') };
904 904
 	}
905 905
 
906 906
 	my $return = {};
@@ -909,7 +909,7 @@ sub moderateCheck {
909 909
 			&& $user->{seclev} >= $constants->{authors_unlimited}
910 910
 		)       || $user->{acl}{modpoints_always};
911 911
 	if ($return->{count}) {
912  
-		$return->{msg} = _comments_getError('already posted');
  912
+		$return->{msg} = Slash::_comments_getError('already posted');
913 913
 	}
914 914
 
915 915
 	return $return;

0 notes on commit a41bc67

Please sign in to comment.
Something went wrong with that request. Please try again.