Bug 4473: Making a change to TmplTokenizer.pm to stop translation error

(cherry picked from commit f5e65148ac)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Chris Cormack 2010-12-21 08:31:07 +13:00 committed by Chris Nighswonger
parent df31659c2a
commit 0c507b2eb3
1 changed files with 2 additions and 2 deletions

View File

@ -528,8 +528,8 @@ sub _next_token_intermediate {
$it = $this->_next_token_internal($h);
if (defined $it && $it->type == TmplTokenType::TAG) {
if ($it->string =~ /^<(script|style|textarea)\b/is ||
($this->filename =~ /opensearch/ && $it->string =~ /^<(description)\b/) # FIXME special case to handle
# a CDATA in opac-opensearch.tmpl
($this->filename =~ /(opensearch)|(opac-showreviews-rss)/ && $it->string =~ /^<(description)\b/) # FIXME special case to handle
# a CDATA in opac-opensearch.tmpl and opac-showreviews-rss.tmpl
) {
$this->_set_cdata_mode( 1 );
$this->_set_cdata_close( "</$1\\s*>" );