Robert Vogel has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/339397 )
Change subject: Use Title from ParserOutput to handle DISPLAYTITLE
......................................................................
Use Title from ParserOutput to handle DISPLAYTITLE
Change-Id: I90a41fac05e72a6517235deeee5726740dce27d1
---
M includes/utility/PageContentProvider.class.php
1 file changed, 7 insertions(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation
refs/changes/97/339397/1
diff --git a/includes/utility/PageContentProvider.class.php
b/includes/utility/PageContentProvider.class.php
index 0ea1748..1bbe818 100644
--- a/includes/utility/PageContentProvider.class.php
+++ b/includes/utility/PageContentProvider.class.php
@@ -328,7 +328,11 @@
}
//This would be the case with normal articles and imagepages
- $sHTML = empty( $sHTML ) ? $wgOut->getHTML() : $sHTML;
+ $sTitle = "";
+ if( empty( $sHTML ) ){
+ $sHTML = $wgOut->getHTML();
+ $sTitle = $wgOut->getPageTitle();
+ }
$this->restoreGlobals();
@@ -345,8 +349,8 @@
$sHTML = sprintf(
$this->getTemplate(),
'bs-ue-jumpmark-'.
- md5(
$oTitle->getPrefixedText().$aParams['oldid'] ),
- $oTitle->getPrefixedText(),
+ md5(
$oTitle->getPrefixedText().$aParams['oldid'] ),
+ empty( $sTitle ) ? $oTitle->getPrefixedText( )
: $sTitle,
$sHTML
);
}
--
To view, visit https://gerrit.wikimedia.org/r/339397
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I90a41fac05e72a6517235deeee5726740dce27d1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: REL1_27
Gerrit-Owner: Robert Vogel <[email protected]>
Gerrit-Reviewer: Ljonka <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits