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 "Change the Balinese language autonym to "Bali""
[lhc/web/wiklou.git]
/
maintenance
/
view.php
diff --git
a/maintenance/view.php
b/maintenance/view.php
index
671369a
..
8683eed
100644
(file)
--- a/
maintenance/view.php
+++ b/
maintenance/view.php
@@
-21,6
+21,8
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
+use MediaWiki\Revision\RevisionRecord;
+
require_once __DIR__ . '/Maintenance.php';
/**
require_once __DIR__ . '/Maintenance.php';
/**
@@
-43,7
+45,7
@@
class ViewCLI extends Maintenance {
$page = WikiPage::factory( $title );
$page = WikiPage::factory( $title );
- $content = $page->getContent( Revision::RAW );
+ $content = $page->getContent( Revision
Record
::RAW );
if ( !$content ) {
$this->fatalError( "Page has no content" );
}
if ( !$content ) {
$this->fatalError( "Page has no content" );
}