summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-11-24 19:39:35 -0500
committerBrian Evans <grknight@gentoo.org>2018-11-24 19:39:35 -0500
commitdc607a7affb1f3a01ab53d981746905da2f99117 (patch)
tree50bd96eeb4a7e17c174e545dad3d10288f230cd3
parentLinkAttribute: add namespace qualifiers (diff)
downloadextensions-dc607a7affb1f3a01ab53d981746905da2f99117.tar.gz
extensions-dc607a7affb1f3a01ab53d981746905da2f99117.tar.bz2
extensions-dc607a7affb1f3a01ab53d981746905da2f99117.zip
LinkAttributes: Revert deprecation until in-line HTML will work properly
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r--LinkAttributes/LinkAttributes.body.php2
-rw-r--r--LinkAttributes/extension.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/LinkAttributes/LinkAttributes.body.php b/LinkAttributes/LinkAttributes.body.php
index 8dc0e43f..b3d26b99 100644
--- a/LinkAttributes/LinkAttributes.body.php
+++ b/LinkAttributes/LinkAttributes.body.php
@@ -4,7 +4,7 @@ use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Linker\LinkTarget;
class LinkAttributes {
- private static $attrsAllowed=[ 'rel', 'rev', 'charset ', 'type', 'hreflang', 'itemprop', 'media', 'title', 'accesskey', 'target' ];
+ private static $attrsAllowed=[ 'rel', 'rev', 'charset ', 'type', 'hreflang', 'itemprop', 'media', 'title', 'accesskey', 'target', 'class' ];
private static function doExtractAttributes ( &$text, &$attribs ) {
diff --git a/LinkAttributes/extension.json b/LinkAttributes/extension.json
index 5aa7f8bf..dd6a25dc 100644
--- a/LinkAttributes/extension.json
+++ b/LinkAttributes/extension.json
@@ -21,7 +21,7 @@
},
"Hooks": {
"LinkerMakeExternalLink": "LinkAttributes::ExternalLink",
- "HtmlPageLinkRendererBegin": "LinkAttributes::onHtmlPageLinkRendererBegin"
+ "LinkBegin": "LinkAttributes::InternalLink"
},
"manifest_version": 1
}