Jump to content

Topic on Extension talk:HidePrefix/Flow

Not yet working with MediaWiki 1.39?

7
Totina (talkcontribs)

Dear Van de Bugger,

is it possible that this extension is not (yet?) working with MediaWiki 1.39.0? I've tried the following:

- upgraded an existing MediaWiki installation from 1.35.8 to 1.39.0 and re-installed the appropriate version of HidePrefix => not working but also no visible errors

- quickly installed a blank MediaWiki 1.39.0 with HidePrefix only (eventually also the older versions of it as well as the latest master from Git) => not working but also no visible errors

- quickly installed a blank MediaWiki 1.35.8 with the appropriate older version of HidePrefix => working!


I assume I'm too early...


Thomas

Derf Jagged (talkcontribs)

I am running into the same issue.

76.168.138.101 (talkcontribs)

Swap the center portion to


$title = Title::newFromText( $html );

$targetTitle = Title::newFromLinkTarget( $target );

if ( $title !== null && $targetTitle && $title->getPrefixedText() == $targetTitle->getPrefixedText() ) {

$text = $target->getText();

}

76.168.138.101 (talkcontribs)

Can then remove most of the other checks

76.168.138.101 (talkcontribs)

Sorry.... this


public static function onHtmlPageLinkRendererBegin(LinkRenderer $linkRenderer, LinkTarget $target,

&$text, &$extraAttribs, &$query, &$ret) {

if ( ! isset( $text ) ) {

$text = $target->getText();

return true;

}

$html = HtmlArmor::getHtml( $text );

title = Title::newFromText( $html );

$targetTitle = Title::newFromLinkTarget( $target );

if ( $title !== null && $targetTitle && $title->getPrefixedText() == $targetTitle->getPrefixedText() ) {

$text = $target->getText();

}

return true;

}

76.168.138.101 (talkcontribs)

The problem is that most of the link text lately comes as HtmlArmor

Celess22 (talkcontribs)

Sorry i wasn't logged in. Any questions please let me know

Reply to "Not yet working with MediaWiki 1.39?"