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
Have maintenance/updateExtensionJsonSchema.php copy documentation
[lhc/web/wiklou.git]
/
maintenance
/
view.php
diff --git
a/maintenance/view.php
b/maintenance/view.php
index
af7eb2d
..
952b825
100644
(file)
--- a/
maintenance/view.php
+++ b/
maintenance/view.php
@@
-38,22
+38,22
@@
class ViewCLI extends Maintenance {
public function execute() {
$title = Title::newFromText( $this->getArg() );
if ( !$title ) {
public function execute() {
$title = Title::newFromText( $this->getArg() );
if ( !$title ) {
- $this->
error( "Invalid title", true
);
+ $this->
fatalError( "Invalid title"
);
}
$page = WikiPage::factory( $title );
$content = $page->getContent( Revision::RAW );
if ( !$content ) {
}
$page = WikiPage::factory( $title );
$content = $page->getContent( Revision::RAW );
if ( !$content ) {
- $this->
error( "Page has no content", true
);
+ $this->
fatalError( "Page has no content"
);
}
if ( !$content instanceof TextContent ) {
}
if ( !$content instanceof TextContent ) {
- $this->
error( "Non-text content models not supported", true
);
+ $this->
fatalError( "Non-text content models not supported"
);
}
$this->output( $content->getNativeData() );
}
}
}
$this->output( $content->getNativeData() );
}
}
-$maintClass =
"ViewCLI"
;
+$maintClass =
ViewCLI::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;