|
@@ -77,7 +77,7 @@ function reloadSettings()
|
|
|
*/
|
|
|
$smcFunc += array(
|
|
|
'entity_fix' => create_function('$string', '
|
|
|
- $num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;
|
|
|
+ $num = $string[0] === \'x\' ? hexdec(substr($string, 1)) : (int) $string;
|
|
|
return $num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) || $num == 0x202E ? \'\' : \'&#\' . $num . \';\';'),
|
|
|
'htmlspecialchars' => create_function('$string, $quote_style = ENT_COMPAT, $charset = \'ISO-8859-1\'', '
|
|
|
global $smcFunc;
|
|
@@ -1914,7 +1914,7 @@ function loadTemplate($template_name, $style_sheets = array(), $fatal = true)
|
|
|
loadLanguage('Errors');
|
|
|
echo '
|
|
|
<div class="alert errorbox">
|
|
|
- <a href="', $scripturl, '?action=admin;area=theme;sa=settings;th=1;', $context['session_var'], '=' . $context['session_id'], '" class="alert">', $txt['theme_dir_wrong'], '</a>
|
|
|
+ <a href="', $scripturl . '?action=admin;area=theme;sa=settings;th=1;' . $context['session_var'] . '=' . $context['session_id'], '" class="alert">', $txt['theme_dir_wrong'], '</a>
|
|
|
</div>';
|
|
|
}
|
|
|
|
|
@@ -2707,7 +2707,7 @@ function cache_get_data($key, $ttl = 120)
|
|
|
if (empty($memcached))
|
|
|
get_memcached_server();
|
|
|
if (!$memcached)
|
|
|
- return;
|
|
|
+ return null;
|
|
|
|
|
|
$value = (function_exists('memcache_get')) ? memcache_get($cache['connection'], $key) : memcached_get($cache['connection'], $key);
|
|
|
}
|