diff --git a/Klein.php b/Klein.php index b424c22..76947a2 100644 --- a/Klein.php +++ b/Klein.php @@ -3,7 +3,7 @@ class Klein { public $code; - function _construct($html) { + function __construct($html) { $pattern = array_map(function ($grammar) { list(, $result) = $grammar; $body = strtr($grammar[0], [' ' => "\s*", '+' => "\s+", ':var' => "(\w+(\s*\.\s*\w+)*)", ':id' => "(\w+)", '{{' => "{{\!?"]);