@@ -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 | } |
@@ -3467,7 +3467,6 @@ discard block |
||
| 3467 | 3467 | } |
| 3468 | 3468 | } |
| 3469 | 3469 | } |
| 3470 | - |
|
| 3471 | 3470 | elseif (($value == 'upload' && allowedTo('profile_upload_avatar')) || $downloadedExternalAvatar) |
| 3472 | 3471 | { |
| 3473 | 3472 | if ((isset($_FILES['attachment']['name']) && $_FILES['attachment']['name'] != '') || $downloadedExternalAvatar) |
@@ -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 | |
@@ -842,7 +842,9 @@ discard block |
||
| 842 | 842 | $pretty_var_export = function($var) |
| 843 | 843 | { |
| 844 | 844 | if (is_array($var)) |
| 845 | - return preg_replace_callback('/^\h+/m', function ($m) { return strtr($m[0], array(' ' => "\t")); }, var_export($var, true)); |
|
| 845 | + return preg_replace_callback('/^\h+/m', function ($m) |
|
| 846 | + { |
|
| 847 | +return strtr($m[0], array(' ' => "\t")); }, var_export($var, true)); |
|
| 846 | 848 | else |
| 847 | 849 | return var_export($var, true); |
| 848 | 850 | }; |
@@ -998,7 +1000,8 @@ discard block |
||
| 998 | 1000 | } |
| 999 | 1001 | |
| 1000 | 1002 | // It's important to do the numbered ones before the named ones, or messes happen. |
| 1001 | - uksort($substitutions, function($a, $b) { |
|
| 1003 | + uksort($substitutions, function($a, $b) |
|
| 1004 | + { |
|
| 1002 | 1005 | if (is_int($a) && is_int($b)) |
| 1003 | 1006 | return $a > $b; |
| 1004 | 1007 | elseif (is_int($a)) |