Index: trunk/extensions/CodeReview/CodeRepository.php |
— | — | @@ -225,10 +225,11 @@ |
226 | 226 | // Store to cache |
227 | 227 | $wgMemc->set( $key, $data, 3600*24*3 ); |
228 | 228 | // Permanent DB storage |
229 | | - $flags = Revision::compressRevisionText( $data ); |
| 229 | + $storedData = $data; |
| 230 | + $flags = Revision::compressRevisionText( $storedData ); |
230 | 231 | $dbw = wfGetDB( DB_MASTER ); |
231 | 232 | $dbw->update( 'code_rev', |
232 | | - array( 'cr_diff' => $data, 'cr_flags' => $flags ), |
| 233 | + array( 'cr_diff' => $storedData, 'cr_flags' => $flags ), |
233 | 234 | array( 'cr_repo_id' => $this->mId, 'cr_id' => $rev ), |
234 | 235 | __METHOD__ |
235 | 236 | ); |