correct spelling of $link_definition

This commit is contained in:
Emanuil Rusev 2013-10-13 22:52:36 +03:00
parent 5dd40e7adf
commit 6a0695deb9
1 changed files with 4 additions and 4 deletions

View File

@ -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
{