From c0099cc41ea55e481ba2748d06072b7a2fc6735e Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 8 Nov 2008 18:30:04 +0000 Subject: [PATCH] Fix for r43295: check if $wgArticle is set --- includes/Skin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index f5c80c9cf3..1da33ec2f6 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1304,8 +1304,8 @@ END; if ( $type == 'detect' ) { $diff = $wgRequest->getVal( 'diff' ); - - if ( is_null( $diff ) && !$wgArticle->isCurrent() && wfMsgForContent( 'history_copyright' ) !== '-' ) { + $isCur = $wgArticle && $wgArticle->isCurrent(); + if ( is_null( $diff ) && !$isCur && wfMsgForContent( 'history_copyright' ) !== '-' ) { $type = 'history'; } else { $type = 'normal'; -- 2.20.1