From 501d6a1c9c20ee63afc155b01689c85e20694ce0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 2 Mar 2019 13:04:30 +0000 Subject: [PATCH] Assume that the extra data directory exists in modules. We can get the module registration system to automatically prepare the requested files --- modules/parser-parsedown.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/parser-parsedown.php b/modules/parser-parsedown.php index 0504979..57b6974 100644 --- a/modules/parser-parsedown.php +++ b/modules/parser-parsedown.php @@ -215,10 +215,8 @@ register_module([ } ]); -if(file_exists($paths->extra_data_directory)) { - require_once("$paths->extra_data_directory/Parsedown.php"); - require_once("$paths->extra_data_directory/ParsedownExtra.php"); -} +require_once("$paths->extra_data_directory/Parsedown.php"); +require_once("$paths->extra_data_directory/ParsedownExtra.php"); /** * Attempts to 'auto-correct' a page name by trying different capitalisation