Fix for default PHP autoloading not working with Readme.php on case-sensitive file-system.
This commit is contained in:
parent
4e091d4105
commit
f35f0c0806
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue