diff --git a/extension.json b/extension.json index e06689b..fce3ffb 100644 --- a/extension.json +++ b/extension.json @@ -9,6 +9,7 @@ "url": "https://www.mediawiki.org/wiki/Extension:AJAX_Poll", "descriptionmsg": "ajaxpoll-desc", "type": "parserhook", + "callback": "AJAXPoll::onRegistration", "GroupPermissions": { "*": { "ajaxpoll-vote": false, @@ -63,10 +64,6 @@ "TrackingCategories": [ "ajaxpoll-tracking-category" ], - "config": { - "AjaxExportList": [ - "AJAXPoll::submitVote" - ] - }, + "config": {}, "manifest_version": 1 } diff --git a/includes/AJAXPoll.class.php b/includes/AJAXPoll.class.php index 8c8c2c6..64dfc73 100644 --- a/includes/AJAXPoll.class.php +++ b/includes/AJAXPoll.class.php @@ -15,6 +15,11 @@ */ class AJAXPoll { + public static function onRegistration() { + global $wgAjaxExportList; + $wgAjaxExportList[] = 'AJAXPoll::submitVote'; + } + /** * Register tag with the parser *