dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "resourceloader: Reduce width of module hash from 7 chars to 5"
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
checkStorage.php
diff --git
a/maintenance/storage/checkStorage.php
b/maintenance/storage/checkStorage.php
index
c2fa687
..
060f327
100644
(file)
--- a/
maintenance/storage/checkStorage.php
+++ b/
maintenance/storage/checkStorage.php
@@
-22,6
+22,7
@@
*/
use MediaWiki\MediaWikiServices;
*/
use MediaWiki\MediaWikiServices;
+use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Shell\Shell;
if ( !defined( 'MEDIAWIKI' ) ) {
use MediaWiki\Shell\Shell;
if ( !defined( 'MEDIAWIKI' ) ) {
@@
-105,7
+106,9
@@
class CheckStorage {
[],
[ 'content' => [ 'INNER JOIN', [ 'content_id = slot_content_id' ] ] ]
);
[],
[ 'content' => [ 'INNER JOIN', [ 'content_id = slot_content_id' ] ] ]
);
+ /** @var \MediaWiki\Storage\SqlBlobStore $blobStore */
$blobStore = MediaWikiServices::getInstance()->getBlobStore();
$blobStore = MediaWikiServices::getInstance()->getBlobStore();
+ '@phan-var \MediaWiki\Storage\SqlBlobStore $blobStore';
foreach ( $res as $row ) {
$textId = $blobStore->getTextIdFromAddress( $row->content_address );
if ( $textId ) {
foreach ( $res as $row ) {
$textId = $blobStore->getTextIdFromAddress( $row->content_address );
if ( $textId ) {
@@
-523,7
+526,7
@@
class CheckStorage {
function importRevision( &$revision, &$importer ) {
$id = $revision->getID();
function importRevision( &$revision, &$importer ) {
$id = $revision->getID();
- $content = $revision->getContent( Revision::RAW );
+ $content = $revision->getContent( Revision
Record
::RAW );
$id = $id ?: '';
if ( $content === null ) {
$id = $id ?: '';
if ( $content === null ) {