Robert Vogel has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/339398 )

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/98/339398/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/339398
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_23
Gerrit-Owner: Robert Vogel <vo...@hallowelt.biz>
Gerrit-Reviewer: Ljonka <l.verhovs...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to