Fixing various

This commit is contained in:
Antonis Farangitakis
2016-12-29 19:19:24 +02:00
committed by Antz
parent f79e902477
commit 24e1fac367
5 changed files with 31 additions and 15 deletions
+10 -2
View File
@@ -81,10 +81,18 @@ switch ($what) {
save_cache(11, $id, $quest);
}
$x .= '$WowheadPower.registerQuest(' . $id . ', 0,{';
if ($quest['name'])
$x .= 'name: \'' . str_normalize($quest['name']) . '\',';
if (isset($quest['Title']))
{
$x .= 'name: \'' . str_normalize($quest['Title']) . '\',';
}
else
{
$x .= 'name: \'' . 'error' . '\',';
}
if ($quest['tooltip'])
{
$x .= 'tooltip: \'' . str_normalize($quest['tooltip']) . '\'';
}
$x .= '});';
break;
default: