Chad has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/331664 )

Change subject: Move ajax export list setup to entry point
......................................................................

Move ajax export list setup to entry point

There's no real reason for the abstraction as the config is not
conditional or anything.

Change-Id: I1e688ae0f12ce1ebc19d8ff686434befe840abab
---
M FlaggedRevs.php
M frontend/FlaggedRevsUI.setup.php
2 files changed, 2 insertions(+), 11 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FlaggedRevs 
refs/changes/64/331664/1

diff --git a/FlaggedRevs.php b/FlaggedRevs.php
index 52041a8..37ac0aa 100644
--- a/FlaggedRevs.php
+++ b/FlaggedRevs.php
@@ -474,7 +474,8 @@
 $wgLogActions['rights/erevoke']  = 'rights-editor-revoke';
 
 # AJAX functions
-FlaggedRevsUISetup::defineAjaxFunctions( $wgAjaxExportList );
+$wgAjaxExportList[] = 'RevisionReview::AjaxReview';
+$wgAjaxExportList[] = 'FlaggablePageView::AjaxBuildDiffHeaderItems';
 
 # Special case page cache invalidations
 $wgJobClasses['flaggedrevs_CacheUpdate'] = 'FRExtraCacheUpdateJob';
diff --git a/frontend/FlaggedRevsUI.setup.php b/frontend/FlaggedRevsUI.setup.php
index 41a1161..da32ea7 100644
--- a/frontend/FlaggedRevsUI.setup.php
+++ b/frontend/FlaggedRevsUI.setup.php
@@ -83,14 +83,4 @@
                        }
                }
        }
-
-       /**
-        * Define AJAX dispatcher functions
-        * @param $ajaxExportList Array $wgAjaxExportList
-        * @return void
-        */
-       public static function defineAjaxFunctions( &$ajaxExportList ) {
-               $ajaxExportList[] = 'RevisionReview::AjaxReview';
-               $ajaxExportList[] = 
'FlaggablePageView::AjaxBuildDiffHeaderItems';
-       }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/331664
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e688ae0f12ce1ebc19d8ff686434befe840abab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FlaggedRevs
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to