Do the lazy porting to mw 1.29.0 hooks

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-11-30 19:58:52 +00:00
parent 21c78da886
commit 5ee3b0bbdc

View file

@ -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.