Jeroen De Dauw has uploaded a new change for review.
https://gerrit.wikimedia.org/r/229643
Change subject: Improve formatting in entry point
......................................................................
Improve formatting in entry point
Change-Id: Idd2fc6041fa4ef87d4c3080b2eb63e9318812ea5
---
M WikibaseQualityConstraints.php
1 file changed, 9 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints
refs/changes/43/229643/1
diff --git a/WikibaseQualityConstraints.php b/WikibaseQualityConstraints.php
index c989920..c52813e 100644
--- a/WikibaseQualityConstraints.php
+++ b/WikibaseQualityConstraints.php
@@ -47,8 +47,15 @@
// Register violation context
define( 'WBQ_CONSTRAINTS_ID', 'wbqc' );
+
$GLOBALS['wbqSubExtensions'][WBQ_CONSTRAINTS_ID] = array(
- 'violationTypes' => function() { return array_keys(
WikibaseQuality\ConstraintReport\ConstraintReportFactory::getDefaultInstance()->getConstraintCheckerMap()
); },
- 'violationFormatter' => function() { return
WikibaseQuality\ConstraintReport\ConstraintReportFactory::getDefaultInstance()->getViolationFormatter();
}
+ 'violationTypes' => function() {
+ return array_keys(
+
WikibaseQuality\ConstraintReport\ConstraintReportFactory::getDefaultInstance()->getConstraintCheckerMap()
+ );
+ },
+ 'violationFormatter' => function() {
+ return
WikibaseQuality\ConstraintReport\ConstraintReportFactory::getDefaultInstance()->getViolationFormatter();
+ }
);
} );
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/229643
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idd2fc6041fa4ef87d4c3080b2eb63e9318812ea5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits