r77939 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77938‎ | r77939 | r77940 >
Date:00:55, 7 December 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Only show tab when page exists
Modified paths:
  • /trunk/extensions/Push/includes/Push_Tab.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Push/includes/Push_Tab.php
@@ -17,8 +17,8 @@
1818 * Adds an "action" (i.e., a tab) to allow pushing the current article.
1919 */
2020 public static function displayTab( $obj, &$content_actions ) {
21 - // Make sure that this is not a special page.
22 - if ( isset( $obj->mTitle ) && $obj->mTitle->getNamespace() != NS_SPECIAL ) {
 21+ // Make sure that this is not a special page and that the page exists.
 22+ if ( isset( $obj->mTitle ) && $obj->mTitle->getNamespace() != NS_SPECIAL && $obj->mTitle->exists() ) {
2323 global $wgRequest;
2424
2525 $content_actions['push'] = array(

Status & tagging log