Topic on Extension talk:LinkAttributes/Flow

error with target=_self

1
Johnywhy (talkcontribs)

hi

we found support for "target" in your code (we think). https://github.com/rotsee/LinkAttributes/blob/master/LinkAttributes.body.php#L4

but not working for me.

when i try to save this:

[http://www.twitter.com Twitter|target=_self]

i get this:

[WuyUHc4dk4cRU9a4Ioa2DQAAAI8] /index.php?title=Draft:ParamTester&action=submit Error from line 26 of /home/gunsywtx/public_html/extensions/LinkAttributes/LinkAttributes.body.php: Undefined class constant 'attrsAllowed'

Backtrace:

#0 /home/gunsywtx/public_html/extensions/LinkAttributes/LinkAttributes.body.php(44): LinkAttributes::doExtractAttributes(string, array)
#1 /home/gunsywtx/public_html/includes/Hooks.php(177): LinkAttributes::ExternalLink(string, string, string, array, string)
#2 /home/gunsywtx/public_html/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#3 /home/gunsywtx/public_html/includes/Linker.php(875): Hooks::run(string, array)
#4 /home/gunsywtx/public_html/includes/parser/Parser.php(1885): Linker::makeExternalLink(string, string, boolean, string, array, Title)
#5 /home/gunsywtx/public_html/includes/parser/Parser.php(1304): Parser->replaceExternalLinks(string)
#6 /home/gunsywtx/public_html/includes/parser/Parser.php(451): Parser->internalParse(string)
#7 /home/gunsywtx/public_html/includes/content/WikitextContent.php(329): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#8 /home/gunsywtx/public_html/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#9 /home/gunsywtx/public_html/includes/page/WikiPage.php(2080): AbstractContent->getParserOutput(Title, NULL, ParserOptions)
#10 /home/gunsywtx/public_html/includes/page/WikiPage.php(1606): WikiPage->prepareContentForEdit(WikitextContent, NULL, User, string, boolean)
#11 /home/gunsywtx/public_html/includes/EditPage.php(2203): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User, string, array, integer)
#12 /home/gunsywtx/public_html/includes/EditPage.php(1514): EditPage->internalAttemptSave(array, boolean)
#13 /home/gunsywtx/public_html/includes/EditPage.php(667): EditPage->attemptSave(array)
#14 /home/gunsywtx/public_html/includes/actions/EditAction.php(60): EditPage->edit()
#15 /home/gunsywtx/public_html/includes/actions/SubmitAction.php(38): EditAction->show()
#16 /home/gunsywtx/public_html/includes/MediaWiki.php(499): SubmitAction->show()
#17 /home/gunsywtx/public_html/includes/MediaWiki.php(293): MediaWiki->performAction(Article, Title)
#18 /home/gunsywtx/public_html/includes/MediaWiki.php(851): MediaWiki->performRequest()
#19 /home/gunsywtx/public_html/includes/MediaWiki.php(523): MediaWiki->main()
#20 /home/gunsywtx/public_html/index.php(43): MediaWiki->run()
#21 {main}
Reply to "error with target=_self"