Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2974
bug6253.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:18 PM
2014-11-21 21:18:43 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
bug6253.patch
View Options
Index: includes/OutputPage.php
===================================================================
--- includes/OutputPage.php (revision 21896)
+++ includes/OutputPage.php (working copy)
@@ -364,7 +364,7 @@
$this->enableClientCache( false );
}
if ( $parserOutput->mHTMLtitle != "" ) {
- $this->mPagetitle = $parserOutput->mHTMLtitle ;
+ $this->setPagetitle( $parserOutput->mHTMLtitle );
}
if ( $parserOutput->mSubtitle != '' ) {
$this->mSubtitle .= $parserOutput->mSubtitle ;
Index: includes/CoreParserFunctions.php
===================================================================
--- includes/CoreParserFunctions.php (revision 21896)
+++ includes/CoreParserFunctions.php (working copy)
@@ -98,10 +98,12 @@
}
static function displaytitle( $parser, $param = '' ) {
- $parserOptions = new ParserOptions;
- $local_parser = clone $parser;
- $t2 = $local_parser->parse ( $param, $parser->mTitle, $parserOptions, false );
- $parser->mOutput->mHTMLtitle = $t2->GetText();
+ $parser->mOutput->mHTMLtitle = $param;
+ $title = Title::newFromText( $param );
+ if( !is_null( $title ) && $parser->mTitle->equals( $title ) ) {
+ # No subtitle needed
+ return '';
+ }
# Add subtitle
$t = $parser->mTitle->getPrefixedText();
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2544
Default Alt Text
bug6253.patch (1 KB)
Attached To
Mode
T8253: Use of {{DISPLAYTITLE|xyz}} renders blank title (<title></title>)
Attached
Detach File
Event Timeline
Log In to Comment