Merge pull request #173 from Gautham/master

Replace Parsedown manual loading with Composer's Autoloader
This commit is contained in:
Denis Kisselev 2014-05-18 12:25:55 -07:00
commit 4a504b985f

View File

@ -1,6 +1,6 @@
<?php <?php
require_once(dirname(__FILE__) . "/../vendor/autoload.php");
require_once(dirname( __FILE__)."/../vendor/erusev/parsedown/Parsedown.php");//markdown_extended.php");
$tree = array(); $tree = array();
$base = dirname(dirname(__FILE__)); $base = dirname(dirname(__FILE__));
$options = get_options(isset($argv[2]) ? $argv[2] : ''); $options = get_options(isset($argv[2]) ? $argv[2] : '');
@ -32,6 +32,7 @@
'file_editor' => false, 'file_editor' => false,
'template' => 'default' 'template' => 'default'
); );
// Load User Config // Load User Config
$config_file = (($config_file === '') ? 'docs/config.json' : $config_file); $config_file = (($config_file === '') ? 'docs/config.json' : $config_file);
if (substr($config_file, 0, 1) !== '/') $config_file = $base . '/' . $config_file; if (substr($config_file, 0, 1) !== '/') $config_file = $base . '/' . $config_file;