- rewrote currencies, achievements, events, factions - GenericPage: * moved more checks from Util * structured and commented GenericPage to be easier to comprehend * added GenericPage::postCache() to modify cached data before display (e.g. update time for events) - fixed: * parsing events from markdown (e.g. articles) * huge padding of minibox headings (css) * Loot passing jsGlobals to template * ItemList::getExtendedCost passing jsGlobals to template * categories for factions * conflicting GenericPage::$subject when displaying 'notFound' * load of typos
10 lines
323 B
PHP
10 lines
323 B
PHP
var _ = g_titles;
|
|
<?php
|
|
foreach ($vars as $id => $data):
|
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'';
|
|
if (isset($data['namefemale'])):
|
|
echo ', namefemale_'.User::$localeString.':\''.Util::jsEscape($data['namefemale']).'\'';
|
|
endif;
|
|
echo '};';
|
|
endforeach;
|
|
?>
|