r43764 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43763‎ | r43764 | r43765 >
Date:15:15, 20 November 2008
Author:catrope
Status:ok
Tags:
Comment:
Fix up r43673: reindex the rights array after removing duplicates
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryUserInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryUserInfo.php
@@ -77,7 +77,7 @@
7878 }
7979 if (isset($this->prop['rights'])) {
8080 // User::getRights() may return duplicate values, strip them
81 - $vals['rights'] = array_unique($wgUser->getRights());
 81+ $vals['rights'] = array_values(array_unique($wgUser->getRights()));
8282 $result->setIndexedTagName($vals['rights'], 'r'); // even if empty
8383 }
8484 if (isset($this->prop['options'])) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r43673fix for http://code.pediapress.com/wiki/ticket/365: use wfMsgForContent() and...jojo13:47, 18 November 2008

Status & tagging log