From 4a35339c5b966a9ea49fc937dedf7852d01c871c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=98=D0=B7=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2?= Date: Wed, 29 Mar 2017 10:39:08 +0300 Subject: [PATCH] facepalm --- Klein.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+)", '{{' => "{{\!?"]);