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 "Make WatchedItemQueryService depend on PermissionManager"
[lhc/web/wiklou.git]
/
maintenance
/
purgePage.php
diff --git
a/maintenance/purgePage.php
b/maintenance/purgePage.php
index
44d390e
..
d72b98a
100644
(file)
--- a/
maintenance/purgePage.php
+++ b/
maintenance/purgePage.php
@@
-46,8
+46,8
@@
class PurgePage extends Maintenance {
}
}
}
}
- private function purge( $title ) {
- $title = Title::newFromText( $title );
+ private function purge( $title
Text
) {
+ $title = Title::newFromText( $title
Text
);
if ( is_null( $title ) ) {
$this->error( 'Invalid page title' );
if ( is_null( $title ) ) {
$this->error( 'Invalid page title' );
@@
-67,12
+67,12
@@
class PurgePage extends Maintenance {
}
if ( $page->doPurge() ) {
}
if ( $page->doPurge() ) {
- $this->output( "Purged\n" );
+ $this->output( "Purged
{$titleText}
\n" );
} else {
} else {
- $this->error( "Purge failed" );
+ $this->error( "Purge failed
for {$titleText}
" );
}
}
}
}
}
}
-$maintClass =
"PurgePage"
;
+$maintClass =
PurgePage::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;