dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b2271e
)
render file description via ContentHandler
author
daniel
<daniel.kinzler@wikimedia.de>
Fri, 8 Jun 2012 07:42:04 +0000
(09:42 +0200)
committer
daniel
<daniel.kinzler@wikimedia.de>
Fri, 8 Jun 2012 07:42:04 +0000
(09:42 +0200)
includes/filerepo/file/LocalFile.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/file/LocalFile.php
b/includes/filerepo/file/LocalFile.php
index
2f55ec1
..
22131c6
100644
(file)
--- a/
includes/filerepo/file/LocalFile.php
+++ b/
includes/filerepo/file/LocalFile.php
@@
-1458,9
+1458,9
@@
class LocalFile extends File {
global $wgParser;
$revision = Revision::newFromTitle( $this->title );
if ( !$revision ) return false;
- $
text = $revision->getTex
t();
- if ( !$
tex
t ) return false;
- $pout = $
wgParser->parse( $text, $this->title
, new ParserOptions() );
+ $
content = $revision->getConten
t();
+ if ( !$
conten
t ) return false;
+ $pout = $
content->getParserOutput( $this->title, null
, new ParserOptions() );
return $pout->getText();
}