Index: trunk/extensions/Maps/Maps.php |
— | — | @@ -143,13 +143,14 @@ |
144 | 144 | function efMapsAddToAdminLinks(&$admin_links_tree) { |
145 | 145 | // TODO: move the documentation link to another section - and make it non dependant on SMW? |
146 | 146 | $displaying_data_section = $admin_links_tree->getSection(wfMsg('smw_adminlinks_displayingdata')); |
| 147 | + |
147 | 148 | // Escape if SMW hasn't added links |
148 | | - if (is_null($displaying_data_section)) |
149 | | - return true; |
| 149 | + if (is_null($displaying_data_section)) return true; |
150 | 150 | $smw_docu_row = $displaying_data_section->getRow('smw'); |
151 | | - wfLoadExtensionMessages('Maps'); |
| 151 | + |
152 | 152 | $maps_docu_label = wfMsg('adminlinks_documentation', wfMsg('maps_name')); |
153 | 153 | $smw_docu_row->addItem(AlItem::newFromExternalLink('http://www.mediawiki.org/wiki/Extension:Maps', $maps_docu_label)); |
| 154 | + |
154 | 155 | return true; |
155 | 156 | } |
156 | 157 | |