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 "filebackend: reduce hashing I/O in SwiftFileBackend::doStoreInternal()"
[lhc/web/wiklou.git]
/
maintenance
/
view.php
diff --git
a/maintenance/view.php
b/maintenance/view.php
index
952b825
..
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';
/**
@@
-36,14
+38,14
@@
class ViewCLI extends Maintenance {
}
public function execute() {
}
public function execute() {
- $title = Title::newFromText( $this->getArg() );
+ $title = Title::newFromText( $this->getArg(
0
) );
if ( !$title ) {
$this->fatalError( "Invalid title" );
}
$page = WikiPage::factory( $title );
if ( !$title ) {
$this->fatalError( "Invalid 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" );
}
@@
-51,7
+53,7
@@
class ViewCLI extends Maintenance {
$this->fatalError( "Non-text content models not supported" );
}
$this->fatalError( "Non-text content models not supported" );
}
- $this->output( $content->get
NativeData
() );
+ $this->output( $content->get
Text
() );
}
}
}
}