Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Fix for erroneous message from lang attribute module
Browse files Browse the repository at this point in the history
Change-Id: I98a94b25ff3673a76f62690ff4eac02dc9df034b
  • Loading branch information
jeblad committed Aug 10, 2012
1 parent aed7add commit 8ebe926
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions repo/includes/api/ApiModifyLangAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,8 @@ protected function validateParameters( array $params ) {
*/
protected function getTextForComment( array $params, $plural = 1 ) {
return Autocomment::formatAutoComment(
$this->getModuleName(),
array(
/* $plural */ 1,
$params['language'],
( isset( $params['value'] ) && 0<strlen( $params['value'] ) )
? 'set'
: 'remove'
)
$this->getModuleName() . '-' . ( ( isset( $params['value'] ) && 0<strlen( $params['value'] ) ) ? 'set' : 'remove' ),
array( /* $plural */ 1, $params['language'] )
);
}

Expand Down

0 comments on commit 8ebe926

Please sign in to comment.