Permalink
Browse files

Version 1.5.5._1: Fixed the bug to show how many hosts are in the sit…

…e when you list All Sites
  • Loading branch information...
Fernando Gietz
Fernando Gietz committed Jan 31, 2019
1 parent b38e090 commit 6da646ca49bee21c3a79bc8ce873483a988324aa
@@ -21,7 +21,7 @@
*/
$fog_plugin = array();
$fog_plugin['name'] = 'site';
$fog_plugin['description'] = 'This plugin restricts the access to the item by site. Version 1.5.5';
$fog_plugin['description'] = 'This plugin restricts the access to the item by site. Version 1.5.5_1';
$fog_plugin['menuicon'] = 'fa fa-building fa-fw';
$fog_plugin['menuicon_hover'] = null;
$fog_plugin['entrypoint'] = 'html/run.php';
@@ -111,7 +111,11 @@ public function __construct($name = '')
'id' => $Site->id,
'name' => $Site->name,
'description' => $Site->description,
'hosts' => $Site->hostcount
// 'hosts' => $Site->getHostCount()
'hosts' => self::getClass('SiteHostAssociationManager')
->count(
['siteID' => $Site->id]
)
);
unset($Site);
};

0 comments on commit 6da646c

Please sign in to comment.