From 6a0695deb91e0d3d570a92cbdb083743e2b29675 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Sun, 13 Oct 2013 22:52:36 +0300 Subject: [PATCH] correct spelling of $link_definition --- Parsedown.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index 8d6ce06..93b279c 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -526,15 +526,15 @@ class Parsedown { foreach ($matches as $matches) { - $link_difinition = isset($matches[3]) && $matches[3] + $link_definition = isset($matches[3]) && $matches[3] ? $matches[3] : $matches[2]; # implicit - $link_difinition = strtolower($link_difinition); + $link_definition = strtolower($link_definition); - if (isset($this->reference_map[$link_difinition])) + if (isset($this->reference_map[$link_definition])) { - $url = $this->reference_map[$link_difinition]; + $url = $this->reference_map[$link_definition]; if ($matches[1]) # image {