Index: trunk/extensions/FlaggedRevs/FRCacheUpdate.php |
— | — | @@ -22,7 +22,8 @@ |
23 | 23 | return; // No duplicates... |
24 | 24 | # Fetch the IDs |
25 | 25 | $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__ ); |
27 | 28 | if( $dbr->numRows($res) > 0 ) { |
28 | 29 | # Do it right now? |
29 | 30 | if( $dbr->numRows($res) <= $this->mRowsPerJob ) { |
— | — | @@ -78,7 +79,8 @@ |
79 | 80 | } |
80 | 81 | |
81 | 82 | 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() ); |
83 | 85 | } |
84 | 86 | |
85 | 87 | /** |
— | — | @@ -106,7 +108,8 @@ |
107 | 109 | } |
108 | 110 | if( count($ids) == 0 ) break; |
109 | 111 | # 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__ ); |
111 | 114 | # Update static caches |
112 | 115 | if( $wgUseSquid || $wgUseFileCache ) { |
113 | 116 | $titles = Title::newFromIDs( $ids ); |