From e137cda2c9634421f76675e81a574375a697eb72 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 7 Apr 2010 12:16:56 +0000 Subject: [PATCH] * (bug 23078) "All public logs" option on Special:Log is now always the first item --- RELEASE-NOTES | 2 ++ includes/LogEventsList.php | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 29a9864baf..b22cc35985 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -92,6 +92,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN frames, and $wgMaxImageArea against the size of the first frame, rather than the other way around. Both now default to 12.5 megapixels. Also, images exceeding $wgMaxImageArea can still be embedded at original size +* (bug 23078) "All public logs" option on Special:Log is now always the first + item === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 49d4dc58f6..045644d6f7 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -199,6 +199,14 @@ class LogEventsList { // Note the query type $queryType = count($queryTypes) == 1 ? $queryTypes[0] : ''; + + // Always put "All public logs" on top + if ( isset( $typesByName[''] ) ) { + $all = $typesByName['']; + unset( $typesByName[''] ); + $typesByName = array( '' => $all ) + $typesByName; + } + // Third pass generates sorted XHTML content foreach( $typesByName as $type => $text ) { $selected = ($type == $queryType); -- 2.20.1