Alexander.lehmann has uploaded a new change for review. https://gerrit.wikimedia.org/r/130054
Change subject: Inserted prefix for special page name. ...................................................................... Inserted prefix for special page name. Change-Id: I9a5df39acda1f3a5770bb317a4791ddf609bd02d --- M PubSubHubbub.body.php M PubSubHubbub.php M i18n/en.json R specials/SpecialPubSubHubbubExport.php M tests/phpunit/PubSubHubbubTest.php 5 files changed, 9 insertions(+), 9 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PubSubHubbub refs/changes/54/130054/1 diff --git a/PubSubHubbub.body.php b/PubSubHubbub.body.php index 3c55b29..85361e3 100644 --- a/PubSubHubbub.body.php +++ b/PubSubHubbub.body.php @@ -103,7 +103,7 @@ * @return string the generated resource URL. */ public static function getPageURL( Title $title = null ) { - $specialTitle = Title::makeTitle( -1, 'PuSHExport' ); + $specialTitle = Title::makeTitle( -1, 'PubSubHubbub-Export' ); if ( is_null( $title ) ) { return $specialTitle->getCanonicalURL(); diff --git a/PubSubHubbub.php b/PubSubHubbub.php index 617f504..09e5638 100644 --- a/PubSubHubbub.php +++ b/PubSubHubbub.php @@ -49,12 +49,12 @@ $wgExtensionMessagesFiles['PubSubHubbub'] = $dir . 'PubSubHubbub.i18n.php'; $wgAutoloadClasses['PubSubHubbub\\PubSubHubbub'] = $dir . 'PubSubHubbub.body.php'; -$wgAutoloadClasses['PubSubHubbub\\SpecialPuSHExport'] = $dir . 'specials/SpecialPuSHExport.php'; +$wgAutoloadClasses['PubSubHubbub\\SpecialPubSubHubbubExport'] = $dir . 'specials/SpecialPubSubHubbubExport.php'; $wgAutoloadClasses['PubSubHubbub\\PublishChangesJob'] = $dir . 'PublishChangesJob.php'; $wgAutoloadClasses['PubSubHubbub\\Publisher'] = $dir . 'lib/Publisher.php'; -$wgSpecialPages['PuSHExport'] = 'PubSubHubbub\\SpecialPuSHExport'; -$wgSpecialPageGroups['PuSHExport'] = 'pagetools'; +$wgSpecialPages['PubSubHubbub-Export'] = 'PubSubHubbub\\SpecialPubSubHubbubExport'; +$wgSpecialPageGroups['PubSubHubbub-Export'] = 'pagetools'; $wgHooks['NewRevisionFromEditComplete'][] = 'PubSubHubbub\\PubSubHubbub::onNewRevisionFromEditComplete'; $wgHooks['OutputPageBeforeHTML'][] = 'PubSubHubbub\\PubSubHubbub::onOutputPageBeforeHTML'; diff --git a/i18n/en.json b/i18n/en.json index a7088df..2434d92 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -5,5 +5,5 @@ ] }, "pubsubhubbub-desc": "Publishes changes to a PubSubHubbub hub", - "pushexport": "PubSubHubbub export" + "pubsubhubbub-export": "PubSubHubbub export" } diff --git a/specials/SpecialPuSHExport.php b/specials/SpecialPubSubHubbubExport.php similarity index 97% rename from specials/SpecialPuSHExport.php rename to specials/SpecialPubSubHubbubExport.php index 7d48f87..6fa876f 100644 --- a/specials/SpecialPuSHExport.php +++ b/specials/SpecialPubSubHubbubExport.php @@ -17,7 +17,7 @@ use Xml; use XmlDumpWriter; -class SpecialPuSHExport extends SpecialPage { +class SpecialPubSubhubbubExport extends SpecialPage { /** * @var WikiExporter @@ -50,7 +50,7 @@ * Constructor */ public function __construct() { - parent::__construct( 'PuSHExport', '', false ); + parent::__construct( 'PubSubhubbub-Export', '', false ); $this->writer = new XmlDumpWriter(); $this->sink = new DumpOutput(); $this->dbr = wfGetDB( DB_SLAVE ); diff --git a/tests/phpunit/PubSubHubbubTest.php b/tests/phpunit/PubSubHubbubTest.php index 3a29cf0..c766002 100644 --- a/tests/phpunit/PubSubHubbubTest.php +++ b/tests/phpunit/PubSubHubbubTest.php @@ -72,7 +72,7 @@ global $wgScript, $wgServer, $wgPubSubHubbubHubURL; $title = Title::newFromText( $titleText ); - $titleURL = $wgServer . $wgScript . "/Special:PuSHExport/" . $urlText; + $titleURL = $wgServer . $wgScript . "/Special:PubSubHubbub-Export/" . $urlText; $linkHeader = "Link: <" . $wgPubSubHubbubHubURL . ">; rel=\"hub\", <" . $titleURL . ">; rel=\"self\""; $this->assertEquals( $linkHeader, PubSubHubbub::createLinkHeader( $wgPubSubHubbubHubURL, $title ) ); } @@ -90,7 +90,7 @@ $ns = NamespaceUtils::getEntityNamespace( $nsModel ); $title = Title::newFromText( $titleText, $ns ); - $titleURL = $wgServer . $wgScript . "/Special:PuSHExport/" . $urlText; + $titleURL = $wgServer . $wgScript . "/Special:PubSubHubbub-Export/" . $urlText; $linkHeader = "Link: <" . $wgPubSubHubbubHubURL . ">; rel=\"hub\", <" . $titleURL . ">; rel=\"self\""; $this->assertEquals( $linkHeader, PubSubHubbub::createLinkHeader( $wgPubSubHubbubHubURL, $title ) ); -- To view, visit https://gerrit.wikimedia.org/r/130054 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9a5df39acda1f3a5770bb317a4791ddf609bd02d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PubSubHubbub Gerrit-Branch: master Gerrit-Owner: Alexander.lehmann <alexander.lehm...@student.hpi.uni-potsdam.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits