@@ -978,7 +978,7 @@ |
||
| 978 | 978 | { |
| 979 | 979 | $row = $smcFunc['db_fetch_assoc']($result); |
| 980 | 980 | if ($row['standard_conforming_strings'] !== 'on') |
| 981 | - { |
|
| 981 | + { |
|
| 982 | 982 | $incontext['continue'] = 0; |
| 983 | 983 | $incontext['error'] = $txt['error_pg_scs']; |
| 984 | 984 | } |
@@ -869,7 +869,6 @@ |
||
| 869 | 869 | $can_approve_boards = boardsAllowedTo('approve_posts'); |
| 870 | 870 | $onlyApproved = $can_approve_boards !== array(0) && !in_array($_REQUEST['targetboard'], $can_approve_boards); |
| 871 | 871 | } |
| 872 | - |
|
| 873 | 872 | else |
| 874 | 873 | $onlyApproved = false; |
| 875 | 874 | |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | log_error(sprintf($txt['smiley_set_dir_not_found'], $set_names[array_search($set, $context['smiley_sets'])])); |
| 501 | 501 | |
| 502 | 502 | $context['smiley_sets'] = array_filter($context['smiley_sets'], function($v) use ($set) |
| 503 | - { |
|
| 503 | + { |
|
| 504 | 504 | return $v != $set; |
| 505 | 505 | }); |
| 506 | 506 | } |
@@ -3493,7 +3493,6 @@ discard block |
||
| 3493 | 3493 | } |
| 3494 | 3494 | } |
| 3495 | 3495 | } |
| 3496 | - |
|
| 3497 | 3496 | elseif (($value == 'upload' && allowedTo('profile_upload_avatar')) || $downloadedExternalAvatar) |
| 3498 | 3497 | { |
| 3499 | 3498 | if ((isset($_FILES['attachment']['name']) && $_FILES['attachment']['name'] != '') || $downloadedExternalAvatar) |
@@ -267,7 +267,6 @@ |
||
| 267 | 267 | $user_info = $real_user_info; |
| 268 | 268 | unset($real_user_info); |
| 269 | 269 | } |
| 270 | - |
|
| 271 | 270 | else |
| 272 | 271 | $user_info = null; |
| 273 | 272 | |
@@ -93,7 +93,6 @@ |
||
| 93 | 93 | if ($ts <= 0 || $ts % 15 != 0 || time() - $ts < 0 || time() - $ts > 20) |
| 94 | 94 | obExit_cron(); |
| 95 | 95 | } |
| 96 | - |
|
| 97 | 96 | else |
| 98 | 97 | $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.0'; |
| 99 | 98 | |
@@ -2167,7 +2167,8 @@ |
||
| 2167 | 2167 | // Sort the attachments by size to make things easier below |
| 2168 | 2168 | if (!empty($loaded_attachments)) |
| 2169 | 2169 | { |
| 2170 | - uasort($loaded_attachments, function($a, $b) { |
|
| 2170 | + uasort($loaded_attachments, function($a, $b) |
|
| 2171 | + { |
|
| 2171 | 2172 | if ($a['filesize'] == $b['filesize']) |
| 2172 | 2173 | return 0; |
| 2173 | 2174 | return ($a['filesize'] < $b['filesize']) ? -1 : 1; |
@@ -468,7 +468,9 @@ |
||
| 468 | 468 | |
| 469 | 469 | // Figure out the filename we'll tell the browser. |
| 470 | 470 | $datatypes = file_exists($progressfile) ? array_keys($smcFunc['json_decode'](file_get_contents($progressfile), true)) : array('profile'); |
| 471 | - $included_desc = array_map(function ($datatype) use ($txt) { return $txt[$datatype]; }, $datatypes); |
|
| 471 | + $included_desc = array_map(function ($datatype) use ($txt) |
|
| 472 | + { |
|
| 473 | +return $txt[$datatype]; }, $datatypes); |
|
| 472 | 474 | |
| 473 | 475 | $dlfilename = array_merge(array($context['forum_name'], $context['member']['username']), $included_desc); |
| 474 | 476 | $dlfilename = preg_replace('/[^\p{L}\p{M}\p{N}_]+/u', '-', str_replace('"', '', un_htmlspecialchars(strip_tags(implode('_', $dlfilename))))); |
@@ -163,7 +163,8 @@ |
||
| 163 | 163 | else |
| 164 | 164 | $context['help_text'] = $_GET['help']; |
| 165 | 165 | |
| 166 | - switch ($_GET['help']) { |
|
| 166 | + switch ($_GET['help']) |
|
| 167 | + { |
|
| 167 | 168 | case 'cal_short_months': |
| 168 | 169 | $context['help_text'] = sprintf($context['help_text'], $txt['months_short'][1], $txt['months_titles'][1]); |
| 169 | 170 | break; |
@@ -203,7 +203,9 @@ |
||
| 203 | 203 | |
| 204 | 204 | $feed_meta = array( |
| 205 | 205 | 'title' => sprintf($txt['profile_of_username'], $user_profile[$uid]['real_name']), |
| 206 | - 'desc' => sentence_list(array_map(function ($datatype) use ($txt) { return $txt[$datatype]; }, array_keys($included))), |
|
| 206 | + 'desc' => sentence_list(array_map(function ($datatype) use ($txt) |
|
| 207 | + { |
|
| 208 | +return $txt[$datatype]; }, array_keys($included))), |
|
| 207 | 209 | 'author' => $mbname, |
| 208 | 210 | 'source' => $scripturl . '?action=profile;u=' . $uid, |
| 209 | 211 | 'self' => '', // Unused, but can't be null. |