r48684 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48683‎ | r48684 | r48685 >
Date:15:45, 22 March 2009
Author:malafaya
Status:deferred
Tags:
Comment:
a new empty tab was being added to main page when user was not logged in
Modified paths:
  • /trunk/extensions/Wikidata/App.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/App.php
@@ -184,7 +184,7 @@
185185 }
186186
187187 // Add context dataset (old hooks 'GetEditLinkTrail' and 'GetHistoryLinkTrail')
188 - if (!$editChanged) {
 188+ if (!$editChanged && $content_actions['edit'] != null) {
189189 addWikidataEditLinkTrail($linkTrail);
190190 $content_actions['edit']['href'] = ($content_actions['edit']['href'] . $linkTrail);
191191 }

Status & tagging log