File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1956,11 +1956,17 @@ function ($matches) {
1956
1956
$ trimmed = addcslashes ($ trimmed , "' " );
1957
1957
1958
1958
if (strlen ($ trimmed ) < 1024 ) {
1959
+ /*
1959
1960
$php = '<_script language="php"><![CDATA[ echo ' . $this->translationFunction . '(\'' . $trimmed . '\');]]></_script>';
1960
1961
//keep space around text for html spacing
1961
1962
$php = str_replace($trimmed, $php, $text);
1962
1963
$f = $this->document->createDocumentFragment();
1963
1964
$f->appendXML($php);
1965
+ */
1966
+ $ c = $ this ->document ->createCDATASection ('echo ' . $ this ->translationFunction . '( \'' . $ trimmed . '\'); ' );
1967
+ $ f = $ this ->document ->createElement ('_script ' );
1968
+ $ f ->setAttribute ('language ' , 'php ' );
1969
+ $ f ->append ($ c );
1964
1970
$ node = $ node ->parentNode ->replaceChild ($ f , $ node );
1965
1971
}
1966
1972
//$node->parentNode->replaceChild($f, $node);
You can’t perform that action at this time.
0 commit comments