Nikerabbit has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/389994 )
Change subject: Make compatible with SemanticMediaWiki
......................................................................
Make compatible with SemanticMediaWiki
Bug: T78018
Change-Id: I74b828d294d850c80b9506bb169e4031577fc97d
---
M ShortUrl.hooks.php
1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ShortUrl
refs/changes/94/389994/1
diff --git a/ShortUrl.hooks.php b/ShortUrl.hooks.php
index 3374d55..2b18d2e 100644
--- a/ShortUrl.hooks.php
+++ b/ShortUrl.hooks.php
@@ -19,9 +19,7 @@
public static function setupUrlRouting( $router ) {
global $wgShortUrlTemplate;
if ( $wgShortUrlTemplate ) {
- $router->add( $wgShortUrlTemplate,
- [ 'title' => SpecialPage::getTitleFor(
'ShortUrl', '$1' )->getPrefixedText() ]
- );
+ $router->add( $wgShortUrlTemplate, [ 'title' =>
'Special:ShortUrl/$1' ] );
}
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/389994
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I74b828d294d850c80b9506bb169e4031577fc97d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ShortUrl
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits