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 "Expand ResponseFactory"
[lhc/web/wiklou.git]
/
maintenance
/
view.php
diff --git
a/maintenance/view.php
b/maintenance/view.php
index
8c0237f
..
671369a
100644
(file)
--- a/
maintenance/view.php
+++ b/
maintenance/view.php
@@
-36,7
+36,7
@@
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" );
}
if ( !$title ) {
$this->fatalError( "Invalid title" );
}
@@
-51,9
+51,9
@@
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
() );
}
}
}
}
-$maintClass =
"ViewCLI"
;
+$maintClass =
ViewCLI::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;