r56584 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56583‎ | r56584 | r56585 >
Date:07:14, 18 September 2009
Author:jeroendedauw
Status:deferred
Tags:
Comment:
test commit
Modified paths:
  • /trunk/extensions/Maps/Maps.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/Maps.php
@@ -143,13 +143,14 @@
144144 function efMapsAddToAdminLinks(&$admin_links_tree) {
145145 // TODO: move the documentation link to another section - and make it non dependant on SMW?
146146 $displaying_data_section = $admin_links_tree->getSection(wfMsg('smw_adminlinks_displayingdata'));
 147+
147148 // 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;
150150 $smw_docu_row = $displaying_data_section->getRow('smw');
151 - wfLoadExtensionMessages('Maps');
 151+
152152 $maps_docu_label = wfMsg('adminlinks_documentation', wfMsg('maps_name'));
153153 $smw_docu_row->addItem(AlItem::newFromExternalLink('http://www.mediawiki.org/wiki/Extension:Maps', $maps_docu_label));
 154+
154155 return true;
155156 }
156157

Status & tagging log