@@ -113,7 +113,8 @@ discard block |
||
| 113 | 113 | array_values(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES | ENT_HTML5)), |
| 114 | 114 | )); |
| 115 | 115 | |
| 116 | - $ent_list = '&(?'.'>#(?'.'>\d+|x[0-9a-fA-F]+)|' . build_regex(array_map(function ($ent) { |
|
| 116 | + $ent_list = '&(?'.'>#(?'.'>\d+|x[0-9a-fA-F]+)|' . build_regex(array_map(function ($ent) |
|
| 117 | + { |
|
| 117 | 118 | return substr($ent, 1, -1); |
| 118 | 119 | }, $named_entities), '~') . ');'; |
| 119 | 120 | |
@@ -911,7 +912,6 @@ discard block |
||
| 911 | 912 | $user_info_min[$row['id_member']]['time_offset'] = ($tz_user->getOffset($time_user) - |
| 912 | 913 | $tz_system->getOffset($time_system)) / 3600; |
| 913 | 914 | } |
| 914 | - |
|
| 915 | 915 | else |
| 916 | 916 | $user_info_min[$row['id_member']]['time_offset'] = empty($row['time_offset']) ? 0 : $row['time_offset']; |
| 917 | 917 | } |
@@ -1643,7 +1643,6 @@ discard block |
||
| 1643 | 1643 | $time_user = new DateTime('now', $tz_user); |
| 1644 | 1644 | $profile['time_offset'] = ($tz_user->getOffset($time_user) - $tz_system->getOffset($time_system)) / 3600; |
| 1645 | 1645 | } |
| 1646 | - |
|
| 1647 | 1646 | else |
| 1648 | 1647 | { |
| 1649 | 1648 | // !!! Compatibility. |
@@ -2336,7 +2335,6 @@ discard block |
||
| 2336 | 2335 | loadLanguage('index+Modifications'); |
| 2337 | 2336 | $context['template_layers'] = array(); |
| 2338 | 2337 | } |
| 2339 | - |
|
| 2340 | 2338 | else |
| 2341 | 2339 | { |
| 2342 | 2340 | // Custom templates to load, or just default? |