mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-24 00:06:06 +00:00
Replace getNativeData to getText for TemplateStyles
Replace Content::getNativeData() calls with TextContent::getText() in TemplateStyles extension. Bug: T283682 Change-Id: I98b240eab220c3a1332a7bafbf0c1e1794bc0448
This commit is contained in:
parent
38aaa56d36
commit
eed8f4892d
|
@ -327,7 +327,7 @@ class Hooks {
|
||||||
if ( $revRecord->getId() ) {
|
if ( $revRecord->getId() ) {
|
||||||
$cacheKey = 'r' . $revRecord->getId();
|
$cacheKey = 'r' . $revRecord->getId();
|
||||||
} else {
|
} else {
|
||||||
$cacheKey = sha1( $content->getNativeData() );
|
$cacheKey = sha1( $content->getText() );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Include any non-default wrapper class in the cache key too
|
// Include any non-default wrapper class in the cache key too
|
||||||
|
|
Loading…
Reference in a new issue