Milimetric has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/344007 )
Change subject: Move as much config in extension.json as possible
......................................................................
Move as much config in extension.json as possible
Bug: T161038
Change-Id: Ie19aac0e1467a1a86a957325230a124530abe46a
---
M README
M extension.json
2 files changed, 7 insertions(+), 11 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Dashiki
refs/changes/07/344007/1
diff --git a/README b/README
index 370bfe6..0e60bd5 100644
--- a/README
+++ b/README
@@ -5,14 +5,4 @@
To install, add the following to LocalSettings.php
- // Configure Dashiki sub-namespace with JsonConfig
- $wgJsonConfigs['JsonConfig.Dashiki'] = array(
- 'pattern' => '/^Dashiki\:./',
- 'isLocal' => true,
- );
-
- // register the custom view implemented by the Dashiki extension
- $wgJsonConfigModels['JsonConfig.Dashiki'] = array(
- 'class' => null,
- 'view' => 'Dashiki\DashikiView',
- );
+ wfLoadExtension( 'Dashiki' );
diff --git a/extension.json b/extension.json
index 3379d6d..8c19cbf 100644
--- a/extension.json
+++ b/extension.json
@@ -21,5 +21,11 @@
"view": "Dashiki\\DashikiView"
}
},
+ "JsonConfigs": {
+ "Dashiki": {
+ "pattern": "/^Dashiki\:./",
+ "isLocal": true
+ }
+ },
"manifest_version": 2
}
--
To view, visit https://gerrit.wikimedia.org/r/344007
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie19aac0e1467a1a86a957325230a124530abe46a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Dashiki
Gerrit-Branch: master
Gerrit-Owner: Milimetric <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits