Daniel Werner has submitted this change and it was merged.
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(-)
Approvals:
Daniel Werner: Verified; Looks good to me, approved
John Erling Blad: Looks good to me, but someone else must approve
jenkins-bot: Checked
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: merged
Gerrit-Change-Id: I924f79cecaeb21ce311f80c6907064cfd91d3504
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Daniel Werner <[email protected]>
Gerrit-Reviewer: Henning Snater <[email protected]>
Gerrit-Reviewer: John Erling Blad <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits