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
maintenance: Avoid usage of deprecated Revision::* constants
[lhc/web/wiklou.git]
/
maintenance
/
refreshLinks.php
diff --git
a/maintenance/refreshLinks.php
b/maintenance/refreshLinks.php
index
8306243
..
3f48abb
100644
(file)
--- a/
maintenance/refreshLinks.php
+++ b/
maintenance/refreshLinks.php
@@
-22,6
+22,7
@@
*/
use MediaWiki\MediaWikiServices;
*/
use MediaWiki\MediaWikiServices;
+use MediaWiki\Storage\RevisionRecord;
use Wikimedia\Rdbms\IDatabase;
require_once __DIR__ . '/Maintenance.php';
use Wikimedia\Rdbms\IDatabase;
require_once __DIR__ . '/Maintenance.php';
@@
-231,7
+232,7
@@
class RefreshLinks extends Maintenance {
}
$rt = null;
}
$rt = null;
- $content = $page->getContent( Revision::RAW );
+ $content = $page->getContent( Revision
Record
::RAW );
if ( $content !== null ) {
$rt = $content->getUltimateRedirectTarget();
}
if ( $content !== null ) {
$rt = $content->getUltimateRedirectTarget();
}