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
|
# 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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue