Skip to content

Commit 36cc6d9

Browse files
Merge pull request #1 from nashjain/patch-1
Fixed array and string offset access syntax with curly braces is deprecated
2 parents bfe13c5 + 7015c7d commit 36cc6d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function filename($template)
4343

4444
function _has_absolute_path($template)
4545
{
46-
$begins_with_directory_separator = (DIRECTORY_SEPARATOR === $template{0});
46+
$begins_with_directory_separator = (DIRECTORY_SEPARATOR === $template[0]);
4747
$begins_with_windows_drive_letter = (':\\' === substr($template, 1, 2));
4848
$begins_with_network_drive = ('\\\\' === substr($template, 0, 2));
4949
return ($begins_with_directory_separator or $begins_with_windows_drive_letter or $begins_with_network_drive);
@@ -94,4 +94,4 @@ function compose($template)
9494
return $content;
9595
}
9696

97-
?>
97+
?>

0 commit comments

Comments
 (0)