Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/49857


Change subject: (bug 45169) Don't use a closure for wgExtensionFunctions
......................................................................

(bug 45169) Don't use a closure for wgExtensionFunctions

Change-Id: Ic9adefb4ae18cc175d30c250ff0f8bcfb6f3ef81
---
M SubPageList.php
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SubPageList 
refs/changes/57/49857/1

diff --git a/SubPageList.php b/SubPageList.php
index 75f27e0..4a3bb30 100644
--- a/SubPageList.php
+++ b/SubPageList.php
@@ -89,7 +89,9 @@
        $wgAutoloadClasses['SubPageList\SubPageFinder']                         
= __DIR__ . '/includes/SubPageFinder.php';
 
 
-       $wgExtensionFunctions[] = function() {
+       $wgExtensionFunctions[] = 'efInitSubPageList';
+       
+       function efInitSubPageList() {
                global $wgHooks;
 
                $wgHooks['ParserFirstCallInit'][] = 'SubPageList::staticInit';
@@ -166,8 +168,8 @@
                        // @codeCoverageIgnoreEnd
                };
 
-       };
+       }
 
 } );
 
-require_once 'SubPageList.settings.php';
\ No newline at end of file
+require_once 'SubPageList.settings.php';

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic9adefb4ae18cc175d30c250ff0f8bcfb6f3ef81
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SubPageList
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>

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

Reply via email to