Do the lazy porting to mw 1.29.0 hooks
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
21c78da886
commit
5ee3b0bbdc
1 changed files with 3 additions and 2 deletions
|
@ -111,7 +111,7 @@ function initialize() {
|
|||
}
|
||||
|
||||
# Register our hooks with mediawiki
|
||||
$wgHooks['ArticleSaveComplete'][] = 'article_save';
|
||||
$wgHooks['PageContentSaveComplete'][] = 'article_save';
|
||||
$wgHooks['UploadComplete'][] = 'upload_complete';
|
||||
|
||||
# This is a reimplementation of the python code in fedmsg/crypto.py
|
||||
|
@ -205,7 +205,8 @@ function article_save(
|
|||
&$flags,
|
||||
$revision,
|
||||
&$status,
|
||||
$baseRevId
|
||||
$baseRevId,
|
||||
$undidRevId
|
||||
) {
|
||||
|
||||
# If for some reason or another we can't create our socket, then bail.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue