We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5c4f03 commit 2bcac96Copy full SHA for 2bcac96
deploy-config.orig.php
@@ -126,4 +126,9 @@
126
* - The array keys contain only the class name, e.g. array("Discord")
127
*/
128
define('CALLBACK_CLASSES', array(
129
-));
+));
130
+
131
+/* PLUGINS_FOLDER:
132
+ * Folder containing all webhook plugins/classes, default: 'plugins/'
133
+ */
134
+define('PLUGINS_FOLDER','plugins/');
deploy.php
@@ -12,7 +12,7 @@
12
spl_autoload_register(function($className){
13
$namespace=str_replace("\\","/",__NAMESPACE__);
14
$className=str_replace("\\","/",$className);
15
- $class="plugins/".(empty($namespace)?"":$namespace."/")."{$className}.class.php";
+ $class=(!defined("PLUGINS_FOLDER") ? "plugins/" : PLUGINS_FOLDER).(empty($namespace)?"":$namespace."/")."{$className}.class.php";
16
include_once($class);
17
});
18
0 commit comments