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:
russ-rogovetz 2022-03-11 15:51:05 +02:00 committed by Umherirrender
parent 38aaa56d36
commit eed8f4892d

View file

@ -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