diff options
author | 2022-11-10 12:15:40 -0500 | |
---|---|---|
committer | 2022-11-10 12:15:40 -0500 | |
commit | f9c4b23ae057ad24d589744f5f0038a78288fa74 (patch) | |
tree | 1ba805de78288c9e3a5e5ca5455bd1d7f7a43448 | |
parent | LinkAttributes: Readd class as valid (diff) | |
download | extensions-f9c4b23ae057ad24d589744f5f0038a78288fa74.tar.gz extensions-f9c4b23ae057ad24d589744f5f0038a78288fa74.tar.bz2 extensions-f9c4b23ae057ad24d589744f5f0038a78288fa74.zip |
Fix bugs in LinkAttributes
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | LinkAttributes/LinkAttributes.body.php | 4 | ||||
-rw-r--r-- | LinkAttributes/extension.json | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/LinkAttributes/LinkAttributes.body.php b/LinkAttributes/LinkAttributes.body.php index 43ff4b89..edd4f6f7 100644 --- a/LinkAttributes/LinkAttributes.body.php +++ b/LinkAttributes/LinkAttributes.body.php @@ -44,9 +44,9 @@ class LinkAttributes { $arr = preg_split( '/[|¦]/u', $_text); $_text = array_shift( $arr ); if ($text instanceof HtmlArmor) { - $_text = new HtmlArmor($_text); + $text = new HtmlArmor($_text); } else { - $text = $text; + $text = $_text; } foreach ( $arr as $a ) { diff --git a/LinkAttributes/extension.json b/LinkAttributes/extension.json index 71ea8789..0bdabf90 100644 --- a/LinkAttributes/extension.json +++ b/LinkAttributes/extension.json @@ -18,7 +18,7 @@ }, "Hooks": { "LinkerMakeExternalLink": "LinkAttributes::ExternalLink", - "HtmlPageLinkRenderEnd": "LinkAttributes::InternalLink" + "HtmlPageLinkRendererEnd": "LinkAttributes::InternalLink" }, "MessagesDirs": { "LinkAttributes": [ |