Compare commits

..

4 Commits

1 changed files with 11 additions and 1 deletions

View File

@ -10,7 +10,17 @@ use Laminas\View\Renderer\PhpRenderer;
use Laminas\Form\FormElementManager; use Laminas\Form\FormElementManager;
use SimpleMDText\Form\SimpleMDTextBlockForm; use SimpleMDText\Form\SimpleMDTextBlockForm;
require_once(dirname(__DIR__, 3) . '/vendor/erusev/parsedown/Parsedown.php');
$list_of_includes = get_included_files();
$parsedown_included=false;
foreach ($list_of_includes as $file_path) {
if (false !== strpos($file_path, "Parsedown.php")) {
$parsedown_included=true;
}
}
if ($parsedown_included == false){
require_once(dirname(__DIR__, 3) . '/vendor/autoload.php');
}
use Parsedown; use Parsedown;