Index: trunk/extensions/AdminLinks/AdminLinks_body.php |
— | — | @@ -31,6 +31,7 @@ |
32 | 32 | $main_row->addItem( ALItem::newFromSpecialPage( 'Statistics' ) ); |
33 | 33 | $main_row->addItem( ALItem::newFromSpecialPage( 'Version' ) ); |
34 | 34 | $main_row->addItem( ALItem::newFromSpecialPage( 'Specialpages' ) ); |
| 35 | + $main_row->addItem( ALItem::newFromSpecialPage( 'Log' ) ); |
35 | 36 | $main_row->addItem( ALItem::newFromSpecialPage( 'Allmessages' ) ); |
36 | 37 | $main_row->addItem( ALItem::newFromEditLink( 'Sidebar', wfMsg( 'adminlinks_editsidebar' ) ) ); |
37 | 38 | $main_row->addItem( ALItem::newFromEditLink( 'Common.css', wfMsg( 'adminlinks_editcss' ) ) ); |
— | — | @@ -86,10 +87,10 @@ |
87 | 88 | * For administrators, add a link to the special 'AdminLinks' page |
88 | 89 | * among the user's "personal URLs" at the top, if they have |
89 | 90 | * the 'adminlinks' permission. |
90 | | - * |
| 91 | + * |
91 | 92 | * @param array $personal_urls |
92 | 93 | * @param Title $title |
93 | | - * |
| 94 | + * |
94 | 95 | * @return true |
95 | 96 | */ |
96 | 97 | public static function addURLToUserLinks( array &$personal_urls, Title &$title ) { |
— | — | @@ -101,7 +102,7 @@ |
102 | 103 | if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
103 | 104 | wfLoadExtensionMessages( 'AdminLinks' ); |
104 | 105 | } |
105 | | - |
| 106 | + |
106 | 107 | $al = SpecialPage::getTitleFor( 'AdminLinks' ); |
107 | 108 | $href = $al->getLocalURL(); |
108 | 109 | $admin_links_vals = array( |
— | — | @@ -109,7 +110,7 @@ |
110 | 111 | 'href' => $href, |
111 | 112 | 'active' => ( $href == $title->getLocalURL() ) |
112 | 113 | ); |
113 | | - |
| 114 | + |
114 | 115 | // find the location of the 'my preferences' link, and |
115 | 116 | // add the link to 'AdminLinks' right before it. |
116 | 117 | // this is a "key-safe" splice - it preserves both the |
— | — | @@ -121,9 +122,8 @@ |
122 | 123 | $prefs_location = array_search( 'preferences', $tab_keys ); |
123 | 124 | array_splice( $tab_keys, $prefs_location, 0, 'adminlinks' ); |
124 | 125 | array_splice( $tab_values, $prefs_location, 0, array( $admin_links_vals ) ); |
125 | | - |
| 126 | + |
126 | 127 | $personal_urls = array(); |
127 | | - |
128 | 128 | for ( $i = 0; $i < count( $tab_keys ); $i++ ) { |
129 | 129 | $personal_urls[$tab_keys[$i]] = $tab_values[$i]; |
130 | 130 | } |
— | — | @@ -211,7 +211,7 @@ |
212 | 212 | } |
213 | 213 | |
214 | 214 | function toString() { |
215 | | - $text = ' <h4 class="mw-specialpagesgroup">' . $this->header . "</h4>\n"; |
| 215 | + $text = ' <h2 class="mw-specialpagesgroup">' . $this->header . "</h2>\n"; |
216 | 216 | foreach ( $this->rows as $row ) { |
217 | 217 | $text .= $row->toString(); |
218 | 218 | } |
— | — | @@ -311,5 +311,5 @@ |
312 | 312 | $item->text = "<a class=\"external text\" rel=\"nofollow\" href=\"$url\">$label</a>"; |
313 | 313 | return $item; |
314 | 314 | } |
315 | | - |
| 315 | + |
316 | 316 | } |