r112933 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112932‎ | r112933 | r112934 >
Date:10:14, 3 March 2012
Author:aaron
Status:ok
Tags:
Comment:
Fixed deprecation notices
Modified paths:
  • /trunk/extensions/FlaggedRevs/frontend/FlaggablePageView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/frontend/FlaggablePageView.php
@@ -256,7 +256,7 @@
257257 $frev = FlaggedRevision::newFromTitle( $this->article->getTitle(), $revID );
258258 # Give a notice if this rev ID corresponds to a reviewed version...
259259 if ( $frev ) {
260 - $time = $this->getLang()->date( $frev->getTimestamp(), true );
 260+ $time = $this->getLanguage()->date( $frev->getTimestamp(), true );
261261 $flags = $frev->getTags();
262262 $quality = FlaggedRevs::isQuality( $flags );
263263 $msg = $quality ? 'revreview-quality-source' : 'revreview-basic-source';
@@ -447,7 +447,7 @@
448448 return; // all this function does is add notices; don't show them
449449 }
450450 $flags = $srev->getTags();
451 - $time = $this->getLang()->date( $srev->getTimestamp(), true );
 451+ $time = $this->getLanguage()->date( $srev->getTimestamp(), true );
452452 # Get quality level
453453 $quality = FlaggedRevs::isQuality( $flags );
454454 # Get stable version sync status
@@ -556,7 +556,7 @@
557557 $reqUser = $this->getUser();
558558 $this->load();
559559 $flags = $frev->getTags();
560 - $time = $this->getLang()->date( $frev->getTimestamp(), true );
 560+ $time = $this->getLanguage()->date( $frev->getTimestamp(), true );
561561 # Set display revision ID
562562 $this->out->setRevisionId( $frev->getRevId() );
563563 # Get quality level
@@ -634,7 +634,7 @@
635635 $reqUser = $this->getUser();
636636 $this->load();
637637 $flags = $srev->getTags();
638 - $time = $this->getLang()->date( $srev->getTimestamp(), true );
 638+ $time = $this->getLanguage()->date( $srev->getTimestamp(), true );
639639 # Set display revision ID
640640 $this->out->setRevisionId( $srev->getRevId() );
641641 # Get quality level
@@ -1350,7 +1350,7 @@
13511351 */
13521352 public function setPendingNotice( FlaggedRevision $srev, $diffToggle = '' ) {
13531353 $this->load();
1354 - $time = $this->getLang()->date( $srev->getTimestamp(), true );
 1354+ $time = $this->getLanguage()->date( $srev->getTimestamp(), true );
13551355 $revsSince = $this->article->getPendingRevCount();
13561356 $msg = $srev->getQuality()
13571357 ? 'revreview-newest-quality'

Sign-offs

UserFlagDate
Nikerabbitinspected06:53, 5 March 2012

Status & tagging log