mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-14 18:54:47 +00:00
Move AjaxExportList to callback
Change-Id: I7f44b3ea0d5460cecfa358fe0a7f437f5d800b8b
This commit is contained in:
parent
eba1049be2
commit
19b11b54d5
|
@ -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
|
||||
}
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
*/
|
||||
class AJAXPoll {
|
||||
|
||||
public static function onRegistration() {
|
||||
global $wgAjaxExportList;
|
||||
$wgAjaxExportList[] = 'AJAXPoll::submitVote';
|
||||
}
|
||||
|
||||
/**
|
||||
* Register <poll> tag with the parser
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue