r53302 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53301‎ | r53302 | r53303 >
Date:09:48, 15 July 2009
Author:catrope
Status:ok (Comments)
Tags:
Comment:
(bug 19729) Fix fatal in Article::showPatrolFooter()
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1085,13 +1085,15 @@
10861086 * desired, does nothing.
10871087 */
10881088 public function showPatrolFooter() {
1089 - global $wgOut, $wgRequest;
 1089+ global $wgOut, $wgRequest, $wgUser;
10901090 $rcid = $wgRequest->getVal( 'rcid' );
10911091
10921092 if( !$rcid || !$this->mTitle->exists() || !$this->mTitle->quickUserCan( 'patrol' ) ) {
10931093 return;
10941094 }
10951095
 1096+ $sk = $wgUser->getSkin();
 1097+
10961098 $wgOut->addHTML(
10971099 "<div class='patrollink'>" .
10981100 wfMsgHtml(

Comments

#Comment by Catrope (talk | contribs)   09:48, 15 July 2009

Patch by OverlordQ

Status & tagging log