Skip to content

Commit 2bcac96

Browse files
author
Unknown
committed
Added custom global config value for plugins folder
1 parent d5c4f03 commit 2bcac96

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

deploy-config.orig.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,9 @@
126126
* - The array keys contain only the class name, e.g. array("Discord")
127127
*/
128128
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/');

deploy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
spl_autoload_register(function($className){
1313
$namespace=str_replace("\\","/",__NAMESPACE__);
1414
$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";
1616
include_once($class);
1717
});
1818

0 commit comments

Comments
 (0)