mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Sync template-parser files
The template-parser files were not in sync, there were some lines added in SSTemplateParser.php from3334eafcb1
and0a9f3b75a9
, I readded those parts into the SSTemplateParser-include-file and recreated the SSTemplateParser.php to get to a synced state...
This commit is contained in:
parent
1dda9ae45f
commit
14de34cb9b
@ -3913,7 +3913,7 @@ class SSTemplateParser extends Parser {
|
||||
|
||||
|
||||
|
||||
/* Comment: "<%--" (!"--%>" /./)+ "--%>" */
|
||||
/* Comment: "<%--" (!"--%>" /(?s)./)+ "--%>" */
|
||||
protected $match_Comment_typestack = array('Comment');
|
||||
function match_Comment ($stack = array()) {
|
||||
$matchrule = "Comment"; $result = $this->construct($matchrule, $matchrule, null);
|
||||
|
@ -804,7 +804,7 @@ class SSTemplateParser extends Parser {
|
||||
* @deprecated
|
||||
*/
|
||||
function ClosedBlock_Handle_Control(&$res) {
|
||||
Deprecation::notice('3.1', 'Use <% with %> or <% loop %> instead.');
|
||||
Deprecation::notice('3.1', '<% control %> is deprecated. Use <% with %> or <% loop %> instead.');
|
||||
return $this->ClosedBlock_Handle_Loop($res);
|
||||
}
|
||||
|
||||
@ -1002,7 +1002,7 @@ class SSTemplateParser extends Parser {
|
||||
// non-dynamically calculated
|
||||
$text = preg_replace(
|
||||
'/href\s*\=\s*\"\#/',
|
||||
'href="\' . (SSViewer::$options[\'rewriteHashlinks\'] ? strip_tags( $_SERVER[\'REQUEST_URI\'] ) : "") .
|
||||
'href="\' . (Config::inst()->get(\'SSViewer\', \'rewrite_hash_links\') ? strip_tags( $_SERVER[\'REQUEST_URI\'] ) : "") .
|
||||
\'#',
|
||||
$text
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user