Anomie has uploaded a new change for review.

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

Change subject: Detect if ApiSandbox is in core
......................................................................

Detect if ApiSandbox is in core

Change-Id: I85c0eedcd31a0e419d8055eca0d9cb1ba872ae62
---
M ApiSandbox.php
A README-deprecated
2 files changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ApiSandbox 
refs/changes/77/262977/1

diff --git a/ApiSandbox.php b/ApiSandbox.php
index 2e8a26b..5a5d069 100644
--- a/ApiSandbox.php
+++ b/ApiSandbox.php
@@ -1,4 +1,14 @@
 <?php
+
+// If core contains ApiSandbox, do not process this extension.
+if ( class_exists( 'SpecialApiSandbox' ) ) {
+       // We need to delay executing the wfWarn because GlobalFunctions.php 
isn't loaded yet.
+       $wgExtensionFunctions[] = function () {
+               wfLogWarning( "Extension:ApiSandbox is no longer needed with 
this version of MediaWiki.\n" );
+       };
+       return;
+}
+
 /**
  * API sandbox extension. Initial author Max Semenik, based on idea by Salil 
P. A.
  * License: WTFPL 2.0
diff --git a/README-deprecated b/README-deprecated
new file mode 100644
index 0000000..50a3df7
--- /dev/null
+++ b/README-deprecated
@@ -0,0 +1,2 @@
+The functionality of this extension was merged into mediawiki/core
+in MediaWiki 1.27, Gerrit change https://gerrit.wikimedia.org/r/#/c/209570/

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I85c0eedcd31a0e419d8055eca0d9cb1ba872ae62
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ApiSandbox
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>

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

Reply via email to