Topic on Extension talk:LastUserLogin/Archive 2

Not working with MediaWiki 1.24.0

6
Kghbln (talkcontribs)

Sadly this extension stopped working with MediaWiki 1.24.0. Does someone maintain this extension?

This post was posted by Kghbln, but signed as SmartK.

Kghbln (talkcontribs)

I am afraid that this extension is indeed unmaintained. I have marked it accordingly. Let's hope for someone to pick up maintaining it.

Kghbln (talkcontribs)

That's the reason:

PHP Fatal error: Call to undefined method Title::escapeLocalURL() in /.../extensions/LastUserLogin/LastUserLogin_body.php on line 72

Kghbln (talkcontribs)

Changing line 72 in the "LastUserLogin_body.php" file will solve the issue:

Before:

$out .= '<th><a href="' . $title->escapeLocalURL( array("order_by"=>$key, "order_type"=>$ordertype) ) . '">' . wfMsg( $value ) . '</a></th>';

After:

$out .= '<th><a href="' . htmlspecialchars( $title->getLocalURL( array( "order_by"=>$key, "order_type"=>$ordertype ) ) ) . '">' . wfMsg( $value ) . '</a></th>';

No warranty but it seems to work. This extension really needs a new maintainer and a general overhaul.

Sophivorus (talkcontribs)

I updated the extension to the latest standards and uploaded it to Gerrit. It now works on MW 1.24+

Kghbln (talkcontribs)

Oops, I did not see your post before. That's utterly cool. Thanks a ton for this!