Liangent has uploaded a new change for review. https://gerrit.wikimedia.org/r/64883
Change subject: (bug 48683) Use a correct way to create titles from given ns and text ...................................................................... (bug 48683) Use a correct way to create titles from given ns and text Bug: 48683 Change-Id: I6d2fa44550361ebda12c602c487d6a38bff1c479 --- M WikiLove.hooks.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiLove refs/changes/83/64883/1 diff --git a/WikiLove.hooks.php b/WikiLove.hooks.php index 4446d61..ad6b77a 100644 --- a/WikiLove.hooks.php +++ b/WikiLove.hooks.php @@ -173,7 +173,7 @@ } // If we're on a subpage, get the base page title - $baseTitle = Title::newFromText( $title->getBaseText(), $ns ); + $baseTitle = Title::makeTitleSafe( $ns, $title->getBaseText() ); if ( $baseTitle === null ) { return wfMessage( 'wikilove-err-invalid-username' )->plain(); } -- To view, visit https://gerrit.wikimedia.org/r/64883 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6d2fa44550361ebda12c602c487d6a38bff1c479 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikiLove Gerrit-Branch: master Gerrit-Owner: Liangent <liang...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits