|
@@ -1031,7 +1031,8 @@ function packageRequireFTP($destination_url, $files = null, $return = false)
|
|
|
*/
|
|
|
function parsePackageInfo(&$packageXML, $testing_only = true, $method = 'install', $previous_version = '')
|
|
|
{
|
|
|
- global $boarddir, $packagesdir, $forum_version, $context, $temp_path, $language;
|
|
|
+ global $boarddir, $packagesdir, $forum_version, $context, $temp_path;
|
|
|
+ global $language, $smcFunc;
|
|
|
|
|
|
// Mayday! That action doesn't exist!!
|
|
|
if (empty($packageXML) || !$packageXML->exists($method))
|
|
@@ -1113,12 +1114,12 @@ function parsePackageInfo(&$packageXML, $testing_only = true, $method = 'install
|
|
|
if (isset($context[$type]['selected']) && $context[$type]['selected'] == 'default')
|
|
|
$context[$type][] = 'default';
|
|
|
|
|
|
- $context[$type]['selected'] = htmlspecialchars($action->fetch('@lang'));
|
|
|
+ $context[$type]['selected'] = $smcFunc['htmlspecialchars']($action->fetch('@lang'));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
// We don't want this now, but we'll allow the user to select to read it.
|
|
|
- $context[$type][] = htmlspecialchars($action->fetch('@lang'));
|
|
|
+ $context[$type][] = $smcFunc['htmlspecialchars']($action->fetch('@lang'));
|
|
|
continue;
|
|
|
}
|
|
|
}
|