From f35f0c08065b232512644be90afe3cdd6652ae55 Mon Sep 17 00:00:00 2001 From: Michel Fortin Date: Thu, 24 Jan 2013 13:52:00 -0500 Subject: [PATCH] Fix for default PHP autoloading not working with Readme.php on case-sensitive file-system. --- Readme.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.php b/Readme.php index 80d85fe..52cf880 100644 --- a/Readme.php +++ b/Readme.php @@ -4,10 +4,10 @@ # through the Markdown filter. You can adapt this sample code in any way # you like. -# Enable class autoloading -spl_autoload_register(); +# Note: this line is only needed when PSR-0 class autoloading is not in place. +require_once './Michelf/Markdown.php'; -# Load Markdown class +# Get Markdown class use \Michelf\Markdown; # Read file and pass content through the Markdown praser @@ -26,4 +26,4 @@ $html = Markdown::defaultTransform($text); echo $html; ?> - \ No newline at end of file +