From 5d1f74f2c8064b3111b518e8b8bdcaf78af1381f Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 15 Jul 2009 09:48:25 +0000 Subject: [PATCH] (bug 19729) Fix fatal in Article::showPatrolFooter() --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 4b231598a4..f1d024e8e2 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1085,13 +1085,15 @@ class Article { * desired, does nothing. */ public function showPatrolFooter() { - global $wgOut, $wgRequest; + global $wgOut, $wgRequest, $wgUser; $rcid = $wgRequest->getVal( 'rcid' ); if( !$rcid || !$this->mTitle->exists() || !$this->mTitle->quickUserCan( 'patrol' ) ) { return; } + $sk = $wgUser->getSkin(); + $wgOut->addHTML( "