Florianschmidtwelzow has uploaded a new change for review.
https://gerrit.wikimedia.org/r/139790
Change subject: Add Article Title to PageTitle
......................................................................
Add Article Title to PageTitle
If article exists, add article title in front of languages message in title of
Special:Mobilelanguages.
Bug: 66591
Change-Id: I9b9ed601cc047148d09b1427da9afaa2b9003316
---
M includes/specials/SpecialMobileLanguages.php
1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/90/139790/1
diff --git a/includes/specials/SpecialMobileLanguages.php
b/includes/specials/SpecialMobileLanguages.php
index b87e865..9b4521f 100755
--- a/includes/specials/SpecialMobileLanguages.php
+++ b/includes/specials/SpecialMobileLanguages.php
@@ -128,8 +128,13 @@
$this->title = Title::newFromText( $pagename );
+ $PageTitle = '';
+ if ( $this->title ) {
+ $PageTitle = $this->title->getEscapedText() . ' - ';
+ }
+ $PageTitle .= $this->msg( 'mobile-frontend-languages-header'
)->text();
$output = $this->getOutput();
- $output->setPageTitle( $this->msg(
'mobile-frontend-languages-header' )->text() );
+ $output->setPageTitle( $PageTitle );
$html = Html::openElement( 'div', array( 'class' => 'content' )
);
--
To view, visit https://gerrit.wikimedia.org/r/139790
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b9ed601cc047148d09b1427da9afaa2b9003316
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits