r64699 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64698‎ | r64699 | r64700 >
Date:12:16, 7 April 2010
Author:ialex
Status:ok
Tags:
Comment:
* (bug 23078) "All public logs" option on Special:Log is now always the first item
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/LogEventsList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogEventsList.php
@@ -199,6 +199,14 @@
200200
201201 // Note the query type
202202 $queryType = count($queryTypes) == 1 ? $queryTypes[0] : '';
 203+
 204+ // Always put "All public logs" on top
 205+ if ( isset( $typesByName[''] ) ) {
 206+ $all = $typesByName[''];
 207+ unset( $typesByName[''] );
 208+ $typesByName = array( '' => $all ) + $typesByName;
 209+ }
 210+
203211 // Third pass generates sorted XHTML content
204212 foreach( $typesByName as $type => $text ) {
205213 $selected = ($type == $queryType);
Index: trunk/phase3/RELEASE-NOTES
@@ -92,6 +92,8 @@
9393 frames, and $wgMaxImageArea against the size of the first frame, rather than
9494 the other way around. Both now default to 12.5 megapixels. Also, images
9595 exceeding $wgMaxImageArea can still be embedded at original size
 96+* (bug 23078) "All public logs" option on Special:Log is now always the first
 97+ item
9698
9799 === API changes in 1.17 ===
98100 * (bug 22738) Allow filtering by action type on query=logevent

Status & tagging log