Compare commits
4 Commits
f703259d44
...
21a011ac3b
Author | SHA1 | Date |
---|---|---|
buttle | 21a011ac3b | |
buttle | c1fb10c1f0 | |
buttle | ae819c904c | |
buttle | 402f94143a |
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue