Assume that the extra data directory exists in modules.

We can get the module registration system to automatically prepare the 
requested files
This commit is contained in:
Starbeamrainbowlabs 2019-03-02 13:04:30 +00:00
parent 7cd57c894f
commit 501d6a1c9c
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 4 deletions

View File

@ -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