Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/194042

Change subject: Add extension.json
......................................................................

Add extension.json

Bug: T87908
Change-Id: Iefa94bd576aab17a7d0f7a2988771618baaedb34
---
M DoubleWiki.php
A extension.json
2 files changed, 31 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DoubleWiki 
refs/changes/42/194042/1

diff --git a/DoubleWiki.php b/DoubleWiki.php
index 2c8c66e..02719b4 100644
--- a/DoubleWiki.php
+++ b/DoubleWiki.php
@@ -20,6 +20,11 @@
 # The translation comes from another wiki
 # that can be accessed through interlanguage links
 
+/**
+ * This PHP entry point is deprecated. Please use wfLoadExtension() and the 
extension.json file instead.
+ * See https://www.mediawiki.org/wiki/Manual:Extension_registration for more 
details.
+ */
+
 $wgMessagesDirs['DoubleWiki'] = __DIR__ . '/i18n';
 $wgExtensionMessagesFiles['DoubleWiki'] = __DIR__  . '/DoubleWiki.i18n.php';
 $wgAutoloadClasses['DoubleWiki'] =  __DIR__ . "/DoubleWiki_body.php";
diff --git a/extension.json b/extension.json
new file mode 100644
index 0000000..30697ea
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,26 @@
+{
+       "name": "DoubleWiki",
+       "author": "ThomasV",
+       "url": "https://www.mediawiki.org/wiki/Extension:DoubleWiki";,
+       "descriptionmsg": "doublewiki-desc",
+       "type": "other",
+       "config": {
+               "DoubleWikiCacheTime": 43200
+       },
+       "Hooks": {
+               "OutputPageBeforeHTML": [
+                       "DoubleWiki::OutputPageBeforeHTML"
+               ],
+               "BeforePageDisplay": [
+                       "DoubleWiki::onBeforePageDisplay"
+               ]
+       },
+       "MessagesDirs": {
+               "DoubleWiki": [
+                       "i18n"
+               ]
+       },
+       "AutoloadClasses": {
+               "DoubleWiki": "DoubleWiki_body.php"
+       }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/194042
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iefa94bd576aab17a7d0f7a2988771618baaedb34
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DoubleWiki
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to