Skip to content

Commit 2f9bd0d

Browse files
author
aude
committed
Use extension registration for MediaWiki credits
and renamed LICENCE file to COPYING also fixes broken license link on Special:Version
1 parent 721323a commit 2f9bd0d

File tree

4 files changed

+16
-25
lines changed

4 files changed

+16
-25
lines changed

LICENCE renamed to COPYING

File renamed without changes.

init.mw.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

init.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?php
22

3-
define( 'WIKIBASE_DATAMODEL_JAVASCRIPT_VERSION', '2.0.0' );
3+
if ( defined( 'MEDIAWIKI' ) && function_exists( 'wfLoadExtension' ) ) {
4+
wfLoadExtension( 'WikibaseDataModelJavaScript', __DIR__ . '/mediawiki-extension.json' );
45

5-
if ( defined( 'MEDIAWIKI' ) ) {
6-
call_user_func( function() {
7-
require_once __DIR__ . '/init.mw.php';
8-
} );
6+
include 'resources.php';
7+
include 'resources.test.php';
98
}

mediawiki-extension.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

0 commit comments

Comments
 (0)