r48663 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48662‎ | r48663 | r48664 >
Date:00:26, 22 March 2009
Author:aaron
Status:ok
Tags:
Comment:
Break long lines
Modified paths:
  • /trunk/extensions/FlaggedRevs/FRCacheUpdate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FRCacheUpdate.php
@@ -22,7 +22,8 @@
2323 return; // No duplicates...
2424 # Fetch the IDs
2525 $dbr = wfGetDB( DB_SLAVE );
26 - $res = $dbr->select( $this->mTable, $this->getFromField(), $this->getToCondition(), __METHOD__ );
 26+ $res = $dbr->select( $this->mTable, $this->getFromField(),
 27+ $this->getToCondition(), __METHOD__ );
2728 if( $dbr->numRows($res) > 0 ) {
2829 # Do it right now?
2930 if( $dbr->numRows($res) <= $this->mRowsPerJob ) {
@@ -78,7 +79,8 @@
7980 }
8081
8182 public function getToCondition() {
82 - return array( 'ftr_namespace' => $this->mTitle->getNamespace(), 'ftr_title' => $this->mTitle->getDBkey() );
 83+ return array( 'ftr_namespace' => $this->mTitle->getNamespace(),
 84+ 'ftr_title' => $this->mTitle->getDBkey() );
8385 }
8486
8587 /**
@@ -106,7 +108,8 @@
107109 }
108110 if( count($ids) == 0 ) break;
109111 # Update page_touched
110 - $dbw->update( 'page', array( 'page_touched' => $timestamp ), array( 'page_id' => $ids ), __METHOD__ );
 112+ $dbw->update( 'page', array( 'page_touched' => $timestamp ),
 113+ array( 'page_id' => $ids ), __METHOD__ );
111114 # Update static caches
112115 if( $wgUseSquid || $wgUseFileCache ) {
113116 $titles = Title::newFromIDs( $ids );

Status & tagging log