Skip to content

Commit

Permalink
Update plugin.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jun 25, 2024
1 parent d21ef10 commit 43b9757
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/class/plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static function byId($_id,$_full = false) {
'type' => 'class',
);
}
if($_full){

$plugin->functionality['interact'] = array('exists' => method_exists($plugin->getId(), 'interact'), 'controlable' => 1);
$plugin->functionality['cron'] = array('exists' => method_exists($plugin->getId(), 'cron'), 'controlable' => 1);
$plugin->functionality['cron5'] = array('exists' => method_exists($plugin->getId(), 'cron5'), 'controlable' => 1);
Expand All @@ -145,6 +145,7 @@ public static function byId($_id,$_full = false) {
$plugin->functionality['cronDaily'] = array('exists' => method_exists($plugin->getId(), 'cronDaily'), 'controlable' => 1);
$plugin->functionality['deadcmd'] = array('exists' => method_exists($plugin->getId(), 'deadCmd'), 'controlable' => 0);
$plugin->functionality['health'] = array('exists' => method_exists($plugin->getId(), 'health'), 'controlable' => 0);
if($_full){
if($plugin->getCache('usedSpace',-1) == -1){
$plugin->setCache('usedSpace',getDirectorySize(__DIR__ . '/../../plugins/' . $data['id']),86400);
}
Expand Down

0 comments on commit 43b9757

Please sign in to comment.