Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

Commit

Permalink
Markdown instance now returns Markdown class.
Browse files Browse the repository at this point in the history
This allows to extend Kohana_Markdown in Markdown class.
  • Loading branch information
Oreolek committed Jun 13, 2013
1 parent bca01a2 commit 677c04d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/Kohana/Markdown.php
Expand Up @@ -180,7 +180,7 @@ protected function __construct(array $config)
* $foo_parser = Markdown::$instances['default'];
*
* @param string the name of the markdown parser to use [Optional]
* @return Kohana_Markdown
* @return Markdown
* @throws Kohana_Markdown_Exception
*/
public static function instance($parser = NULL)
Expand All @@ -202,7 +202,7 @@ public static function instance($parser = NULL)
$config = $config->get($parser);

/* Create a new markdown instance */
Markdown::$instances[$parser] = new Kohana_Markdown($config);
Markdown::$instances[$parser] = new Markdown($config);

/* Return the instance */
return Markdown::$instances[$parser];
Expand Down
2 changes: 1 addition & 1 deletion classes/Markdown.php
Expand Up @@ -11,5 +11,5 @@
* @since Available since Release 1.0
* *
*/
abstract class Markdown extends Kohana_Markdown {}
class Markdown extends Kohana_Markdown {}
?>

0 comments on commit 677c04d

Please sign in to comment.