Fix for default PHP autoloading not working with Readme.php on case-sensitive file-system.

This commit is contained in:
Michel Fortin 2013-01-24 13:52:00 -05:00
parent 4e091d4105
commit f35f0c0806

View file

@ -4,10 +4,10 @@
# through the Markdown filter. You can adapt this sample code in any way # through the Markdown filter. You can adapt this sample code in any way
# you like. # you like.
# Enable class autoloading # Note: this line is only needed when PSR-0 class autoloading is not in place.
spl_autoload_register(); require_once './Michelf/Markdown.php';
# Load Markdown class # Get Markdown class
use \Michelf\Markdown; use \Michelf\Markdown;
# Read file and pass content through the Markdown praser # Read file and pass content through the Markdown praser
@ -26,4 +26,4 @@ $html = Markdown::defaultTransform($text);
echo $html; echo $html;
?> ?>
</body> </body>
</html> </html>