Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2473
patch2
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 8:57 PM
2014-11-21 20:57:52 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
patch2
View Options
Index: OutputPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/OutputPage.php,v
retrieving revision 1.265
diff -u -r1.265 OutputPage.php
--- OutputPage.php 10 Jan 2006 18:44:37 -0000 1.265
+++ OutputPage.php 12 Jan 2006 09:12:25 -0000
@@ -309,12 +309,16 @@
$parserOutput = $wgParser->parse( $text, $article->mTitle,
$this->mParserOptions, true, true, $this->mRevisionId );
- if ( $article && $parserOutput->getCacheTime() != -1 ) {
+ if ( $cache && $article && $parserOutput->getCacheTime() != -1 ) {
$parserCache =& ParserCache::singleton();
$parserCache->save( $parserOutput, $article, $wgUser );
}
- $this->addParserOutput( $parserOutput );
+ $this->addParserOutputNoText( $parserOutput );
+ $text = $parserOutput->getText();
+ wfRunHooks( 'OutputPageBeforeHTML',array( &$this, &$text ) );
+ $parserOutput->setText( $text );
+ $this->addHTML( $parserOutput->getText() );
}
/**
@@ -351,7 +355,9 @@
$this->mLanguageLinks += $parserOutput->getLanguageLinks();
$this->addCategoryLinks( $parserOutput->getCategories() );
$this->addKeywords( $parserOutput );
- $this->addHTML( $parserOutput->getText() );
+ $text = $parserOutput->getText();
+ wfRunHooks( 'OutputPageBeforeHTML', array( &$this, &$text ) );
+ $this->addHTML( $text );
$t = $parserOutput->getTitleText();
if( !empty( $t ) ) {
$this->setPageTitle( $t );
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2049
Default Alt Text
patch2 (1 KB)
Attached To
Mode
T6104: render a text and its translation, on two columns
Attached
Detach File
Event Timeline
Log In to Comment