Fixed processMarkdown task

This commit is contained in:
Djamil Legato
2015-07-30 14:55:25 -07:00
parent 74e7c51002
commit 535d8faf79

View File

@@ -564,13 +564,13 @@ class AdminController
$parsedown = new Parsedown($page, $defaults);
}
$html = json_encode($parsedown->text($markdown));
$html = $parsedown->text($markdown);
$this->admin->json_response = ['status' => 'success', 'message' => $html];
return;
}
$this->admin->json_response = ['status' => 'error', 'message' => 'No markdown text found'];
return;
return true;
}
/**