1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

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

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