File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 126
126
* - The array keys contain only the class name, e.g. array("Discord")
127
127
*/
128
128
define ('CALLBACK_CLASSES ' , array (
129
- ));
129
+ ));
130
+
131
+ /* PLUGINS_FOLDER:
132
+ * Folder containing all webhook plugins/classes, default: 'plugins/'
133
+ */
134
+ define ('PLUGINS_FOLDER ' ,'plugins/ ' );
Original file line number Diff line number Diff line change 12
12
spl_autoload_register (function ($ className ){
13
13
$ namespace =str_replace ("\\" ,"/ " ,__NAMESPACE__ );
14
14
$ className =str_replace ("\\" ,"/ " ,$ className );
15
- $ class =" plugins/ " .(empty ($ namespace )?"" :$ namespace ."/ " )."{$ className }.class.php " ;
15
+ $ class =(! defined ( " PLUGINS_FOLDER " ) ? " plugins/ " : PLUGINS_FOLDER ) .(empty ($ namespace )?"" :$ namespace ."/ " )."{$ className }.class.php " ;
16
16
include_once ($ class );
17
17
});
18
18
You can’t perform that action at this time.
0 commit comments