- fixed rewriteRule if aowow is not in your root dir

- use https if available, added a config value to enforce it if nessecary
- NPC:
  * fixed currency icons when displaying extendedCost for vendor
  * display conditions column only if we actually have conditions set
This commit is contained in:
Sarjuuk
2014-09-09 20:40:12 +02:00
parent a5ce57ddf8
commit 2e18bf0d3e
4 changed files with 16 additions and 7 deletions

View File

@@ -410,7 +410,9 @@ class NpcPage extends GenericPage
$soldItems = new ItemList(array(['id', $sells]));
if (!$soldItems->error)
{
$this->extendGlobalData($soldItems->getJSGlobals());
$extraCols = ["Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack')", 'Listview.extraCols.cost'];
if ($soldItems->hasSetFields(['condition']))
$extraCols[] = 'Listview.extraCols.condition';
$this->lvTabs[] = array(
'file' => 'item',
@@ -418,9 +420,11 @@ class NpcPage extends GenericPage
'params' => array(
'name' => '$LANG.tab_sells',
'id' => 'currency-for',
'extraCols' => "$[Listview.extraCols.condition, Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack'), Listview.extraCols.cost]"
'extraCols' => '$['.implode(', ', $extraCols).']'
)
);
$this->extendGlobalData($soldItems->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
}
}