mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(dashboards, widgets) change plugin file extension
This commit is contained in:
parent
7d286b231d
commit
74ebbbbe98
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user