r99052 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99051‎ | r99052 | r99053 >
Date:21:07, 5 October 2011
Author:aaron
Status:ok
Tags:
Comment:
Fixed use of $this in static function from r99047
Modified paths:
  • /trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php
@@ -1856,7 +1856,7 @@
18571857 * @return int
18581858 */
18591859 protected static function getBaseRevId( EditPage $editPage ) {
1860 - $request = $this->getRequest();
 1860+ $request = FlaggedPageView::singleton()->getRequest();
18611861 if ( !isset( $editPage->fr_baseRevId ) ) {
18621862 $article = $editPage->getArticle(); // convenience
18631863 $latestId = $article->getLatest(); // current rev

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99047Made FlaggedPageView extend ContextSource and removed some global usageaaron20:29, 5 October 2011

Status & tagging log