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
Exit populateIpChanges maintenance script if there are no revisions
[lhc/web/wiklou.git]
/
maintenance
/
findHooks.php
diff --git
a/maintenance/findHooks.php
b/maintenance/findHooks.php
index
fd36db1
..
9903c9e
100644
(file)
--- a/
maintenance/findHooks.php
+++ b/
maintenance/findHooks.php
@@
-143,7
+143,7
@@
class FindHooks extends Maintenance {
) {
$this->output( "Looks good!\n" );
} else {
) {
$this->output( "Looks good!\n" );
} else {
- $this->
error( 'The script finished with errors.', 1
);
+ $this->
fatalError( 'The script finished with errors.'
);
}
}
}
}
@@
-245,7
+245,7
@@
class FindHooks extends Maintenance {
$m = [];
preg_match_all(
// All functions which runs hooks
$m = [];
preg_match_all(
// All functions which runs hooks
- '/(?:wfRunHooks|Hooks\:\:run)\s*\(\s*' .
+ '/(?:wfRunHooks|Hooks\:\:run
|Hooks\:\:runWithoutAbort
)\s*\(\s*' .
// First argument is the hook name as string
'([\'"])(.*?)\1' .
// Comma for second argument
// First argument is the hook name as string
'([\'"])(.*?)\1' .
// Comma for second argument
@@
-349,5
+349,5
@@
class FindHooks extends Maintenance {
}
}
}
}
-$maintClass =
'FindHooks'
;
+$maintClass =
FindHooks::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;