File tree Expand file tree Collapse file tree 3 files changed +21
-25
lines changed Expand file tree Collapse file tree 3 files changed +21
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- define ( 'WIKIBASE_DATAMODEL_JAVASCRIPT_VERSION ' , '2.0.1 ' );
3
+ /**
4
+ * @deprecated since 3.0
5
+ */
6
+ define ( 'WIKIBASE_DATAMODEL_JAVASCRIPT_VERSION ' , '3.0.0 ' );
4
7
5
- if ( defined ( 'MEDIAWIKI ' ) ) {
6
- call_user_func ( function () {
7
- require_once __DIR__ . '/init.mw.php ' ;
8
- } );
8
+ if ( defined ( 'MEDIAWIKI ' ) && function_exists ( 'wfLoadExtension ' ) ) {
9
+ wfLoadExtension ( 'WikibaseDataModelJavaScript ' , __DIR__ . '/mediawiki-extension.json ' );
10
+
11
+ include 'resources.php ' ;
12
+ include 'resources.test.php ' ;
9
13
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " Wikibase DataModel JavaScript" ,
3
+ "author" : [
4
+ " [http://www.snater.com H. Snater]"
5
+ ],
6
+ "url" : " https://github.com/wmde/WikibaseDataModelJavascript" ,
7
+ "description" : " Javascript implementation of the Wikibase data model" ,
8
+ "version" : " 2.0.0" ,
9
+ "type" : " wikibase" ,
10
+ "license-name" : " GPL-2.0+" ,
11
+ "manifest_version" : 1
12
+ }
You can’t perform that action at this time.
0 commit comments