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
Add simplified storage API
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
fixBug20757.php
diff --git
a/maintenance/storage/fixBug20757.php
b/maintenance/storage/fixBug20757.php
index
dd86619
..
dd4cd54
100644
(file)
--- a/
maintenance/storage/fixBug20757.php
+++ b/
maintenance/storage/fixBug20757.php
@@
-296,14
+296,15
@@
class FixBug20757 extends Maintenance {
$this->mapCache[$pageId] = $map;
$this->mapCacheSize += count( $map );
}
$this->mapCache[$pageId] = $map;
$this->mapCacheSize += count( $map );
}
+
return $this->mapCache[$pageId];
}
/**
* This is based on part of HistoryBlobStub::getText().
* Determine if the text can be retrieved from the row in the normal way.
return $this->mapCache[$pageId];
}
/**
* This is based on part of HistoryBlobStub::getText().
* Determine if the text can be retrieved from the row in the normal way.
- * @param $stub
- * @param $secondaryRow
+ * @param
array
$stub
+ * @param
stdClass
$secondaryRow
* @return bool
*/
function isUnbrokenStub( $stub, $secondaryRow ) {
* @return bool
*/
function isUnbrokenStub( $stub, $secondaryRow ) {
@@
-311,7
+312,10
@@
class FixBug20757 extends Maintenance {
$text = $secondaryRow->old_text;
if ( in_array( 'external', $flags ) ) {
$url = $text;
$text = $secondaryRow->old_text;
if ( in_array( 'external', $flags ) ) {
$url = $text;
- @list( /* $proto */ , $path ) = explode( '://', $url, 2 );
+ MediaWiki\suppressWarnings();
+ list( /* $proto */, $path ) = explode( '://', $url, 2 );
+ MediaWiki\restoreWarnings();
+
if ( $path == "" ) {
return false;
}
if ( $path == "" ) {
return false;
}
@@
-338,6
+342,7
@@
class FixBug20757 extends Maintenance {
$obj->uncompress();
$text = $obj->getItem( $stub['hash'] );
$obj->uncompress();
$text = $obj->getItem( $stub['hash'] );
+
return $text !== false;
}
}
return $text !== false;
}
}