Jeroen De Dauw has uploaded a new change for review.

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


Change subject: Minor tweak to entry point code
......................................................................

Minor tweak to entry point code

Change-Id: I924f79cecaeb21ce311f80c6907064cfd91d3504
---
M Database/Database.php
M Query/Query.php
2 files changed, 8 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/53/57453/1

diff --git a/Database/Database.php b/Database/Database.php
index ab5e503..9adb3a0 100644
--- a/Database/Database.php
+++ b/Database/Database.php
@@ -30,9 +30,9 @@
 define( 'WIKIBASE_DATABASE_VERSION', '0.1 alpha' );
 
 // @codeCoverageIgnoreStart
-call_user_func( function() {
-       if ( defined( 'MEDIAWIKI' ) ) {
+if ( defined( 'MEDIAWIKI' ) ) {
+       call_user_func( function() {
                require_once __DIR__ . '/Database.mw.php';
-       }
-} );
+       } );
+}
 // @codeCoverageIgnoreEnd
\ No newline at end of file
diff --git a/Query/Query.php b/Query/Query.php
index 6ff034f..3953dc3 100644
--- a/Query/Query.php
+++ b/Query/Query.php
@@ -30,9 +30,9 @@
 define( 'WIKIBASE_Query', '0.1 alpha' );
 
 // @codeCoverageIgnoreStart
-call_user_func( function() {
-       if ( defined( 'MEDIAWIKI' ) ) {
+if ( defined( 'MEDIAWIKI' ) ) {
+       call_user_func( function() {
                require_once __DIR__ . '/Query.mw.php';
-       }
-} );
+       } );
+}
 // @codeCoverageIgnoreEnd
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I924f79cecaeb21ce311f80c6907064cfd91d3504
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>

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

Reply via email to