- updated Loot-class to work with TrinityCore:master/55b43c67519359f0e5a96004c393898b3c62add3

- fixed some awkward names for skinning-tabs on npc.php
- only send calendar if we have events to display on event.php
- do not display conditions column if there are no conditions on item.php
This commit is contained in:
Sarjuuk
2014-09-28 13:30:17 +02:00
parent 713df0d7f2
commit 0806e616ae
7 changed files with 53 additions and 60 deletions

View File

@@ -58,11 +58,14 @@ class EventsPage extends GenericPage
'params' => []
);
$this->lvTabs[] = array(
'file' => 'calendar',
'data' => array_filter($events->getListviewData(), function($x) {return $x['id'] > 0;}),
'params' => ['hideCount' => 1]
);
if ($_ = array_filter($events->getListviewData(), function($x) {return $x['id'] > 0;}))
{
$this->lvTabs[] = array(
'file' => 'calendar',
'data' => $_,
'params' => ['hideCount' => 1]
);
}
}
protected function generateTitle()