Commit 74ebbbbe authored by Ad Schellevis's avatar Ad Schellevis

(dashboards, widgets) change plugin file extension

parent 7d286b23
......@@ -60,8 +60,8 @@ $result['plugins'] = array();
$result['data'] = array();
// probe plugins
foreach (glob(__DIR__."/plugins/*.php") as $filename) {
$pluginName = basename($filename, '.php');
foreach (glob(__DIR__."/plugins/*.inc") as $filename) {
$pluginName = basename($filename, '.inc');
$result['plugins'][] = $pluginName;
if (in_array($pluginName, $loadPluginsList)) {
require $filename;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment