@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | while ($row = $db->fetch_assoc($request)) |
| 42 | 42 | { |
| 43 | - foreach(array('body', 'subject') as $column) |
|
| 43 | + foreach (array('body', 'subject') as $column) |
|
| 44 | 44 | { |
| 45 | 45 | if ($row['Column_name'] === $column && (isset($row['Index_type']) && $row['Index_type'] === 'FULLTEXT' || isset($row['Comment']) && $row['Comment'] === 'FULLTEXT')) |
| 46 | 46 | { |
@@ -1860,7 +1860,7 @@ |
||
| 1860 | 1860 | if (!$this->_createTemporary) |
| 1861 | 1861 | { |
| 1862 | 1862 | $this->_db_search->search_query('delete_log_search_' . ($searchType == 'subject' ? 'topics' : 'messages'), ' |
| 1863 | - DELETE FROM {db_prefix}log_search_' . ($searchType == 'subject' ? 'topics' : 'messages').' |
|
| 1863 | + DELETE FROM {db_prefix}log_search_' . ($searchType == 'subject' ? 'topics' : 'messages') . ' |
|
| 1864 | 1864 | WHERE id_search = {int:id_search}', |
| 1865 | 1865 | array( |
| 1866 | 1866 | 'id_search' => $id_search, |
@@ -1078,13 +1078,13 @@ |
||
| 1078 | 1078 | { |
| 1079 | 1079 | global $db_row_count; |
| 1080 | 1080 | |
| 1081 | - if(!is_resource($resource) && ($resource instanceof \PgSql\Result)) |
|
| 1081 | + if (!is_resource($resource) && ($resource instanceof \PgSql\Result)) |
|
| 1082 | 1082 | { |
| 1083 | 1083 | $id = spl_object_id($resource); |
| 1084 | 1084 | } |
| 1085 | 1085 | else |
| 1086 | 1086 | { |
| 1087 | - $id = (int)$resource; |
|
| 1087 | + $id = (int) $resource; |
|
| 1088 | 1088 | } |
| 1089 | 1089 | |
| 1090 | 1090 | return $id; |
@@ -1424,7 +1424,7 @@ discard block |
||
| 1424 | 1424 | { |
| 1425 | 1425 | if (!empty($options['admin_preferences'])) |
| 1426 | 1426 | { |
| 1427 | - $options['admin_preferences'] = serializeToJson($options['admin_preferences'], function ($array_form) { |
|
| 1427 | + $options['admin_preferences'] = serializeToJson($options['admin_preferences'], function($array_form) { |
|
| 1428 | 1428 | global $context; |
| 1429 | 1429 | |
| 1430 | 1430 | $context['admin_preferences'] = $array_form; |
@@ -1449,7 +1449,7 @@ discard block |
||
| 1449 | 1449 | { |
| 1450 | 1450 | if (!empty($options['minmax_preferences'])) |
| 1451 | 1451 | { |
| 1452 | - $minmax_preferences = serializeToJson($options['minmax_preferences'], function ($array_form) { |
|
| 1452 | + $minmax_preferences = serializeToJson($options['minmax_preferences'], function($array_form) { |
|
| 1453 | 1453 | global $settings, $user_info; |
| 1454 | 1454 | |
| 1455 | 1455 | // Update the option. |
@@ -516,7 +516,7 @@ discard block |
||
| 516 | 516 | 'value' => $txt['viewmembers_online'], |
| 517 | 517 | ), |
| 518 | 518 | 'data' => array( |
| 519 | - 'function' => function ($rowData) { |
|
| 519 | + 'function' => function($rowData) { |
|
| 520 | 520 | global $txt; |
| 521 | 521 | |
| 522 | 522 | require_once(SUBSDIR . '/Members.subs.php'); |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | 'class' => 'centertext', |
| 560 | 560 | ), |
| 561 | 561 | 'data' => array( |
| 562 | - 'function' => function ($rowData) { |
|
| 562 | + 'function' => function($rowData) { |
|
| 563 | 563 | global $user_info; |
| 564 | 564 | |
| 565 | 565 | return '<input type="checkbox" name="members[]" value="' . $rowData['id_member'] . '" class="input_check" ' . ($rowData['id_member'] == $user_info['id'] || $rowData['id_group'] == 1 || in_array(1, explode(',', $rowData['additional_groups'])) ? 'disabled="disabled"' : '') . ' />'; |
@@ -954,7 +954,7 @@ discard block |
||
| 954 | 954 | 'value' => $txt['hostname'], |
| 955 | 955 | ), |
| 956 | 956 | 'data' => array( |
| 957 | - 'function' => function ($rowData) { |
|
| 957 | + 'function' => function($rowData) { |
|
| 958 | 958 | return host_from_ip($rowData['member_ip']); |
| 959 | 959 | }, |
| 960 | 960 | 'class' => 'smalltext', |
@@ -965,7 +965,7 @@ discard block |
||
| 965 | 965 | 'value' => $context['current_filter'] == 4 ? $txt['viewmembers_online'] : $txt['date_registered'], |
| 966 | 966 | ), |
| 967 | 967 | 'data' => array( |
| 968 | - 'function' => function ($rowData) { |
|
| 968 | + 'function' => function($rowData) { |
|
| 969 | 969 | global $context; |
| 970 | 970 | |
| 971 | 971 | return standardTime($rowData['' . ($context['current_filter'] == 4 ? 'last_login' : 'date_registered') . '']); |
@@ -983,7 +983,7 @@ discard block |
||
| 983 | 983 | 'style' => 'width: 20%;', |
| 984 | 984 | ), |
| 985 | 985 | 'data' => array( |
| 986 | - 'function' => function ($rowData) { |
|
| 986 | + 'function' => function($rowData) { |
|
| 987 | 987 | global $scripturl, $txt; |
| 988 | 988 | |
| 989 | 989 | $member_links = array(); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | 'value' => $txt['error'], |
| 145 | 145 | ), |
| 146 | 146 | 'data' => array( |
| 147 | - 'function' => function ($rowData) { |
|
| 147 | + 'function' => function($rowData) { |
|
| 148 | 148 | $error = $rowData['error_code']; |
| 149 | 149 | if ($error === 'error_pm_not_found') |
| 150 | 150 | return '<span class="error">' . $rowData['error'] . '<span>'; |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | 'value' => $txt['message_type'], |
| 218 | 218 | ), |
| 219 | 219 | 'data' => array( |
| 220 | - 'function' => function ($rowData) { |
|
| 220 | + 'function' => function($rowData) { |
|
| 221 | 221 | global $txt; |
| 222 | 222 | |
| 223 | 223 | // Do we have a type? |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | 'value' => $txt['message_action'], |
| 245 | 245 | ), |
| 246 | 246 | 'data' => array( |
| 247 | - 'function' => function ($rowData) { |
|
| 247 | + 'function' => function($rowData) { |
|
| 248 | 248 | global $context, $txt; |
| 249 | 249 | |
| 250 | 250 | $id = $rowData['id_email'] . ';'; |
@@ -1733,7 +1733,7 @@ discard block |
||
| 1733 | 1733 | 'class' => 'centertext', |
| 1734 | 1734 | ), |
| 1735 | 1735 | 'data' => array( |
| 1736 | - 'function' => function ($rowData) { |
|
| 1736 | + 'function' => function($rowData) { |
|
| 1737 | 1737 | return '<input type="checkbox" name="deltpl[]" value="' . $rowData['id_comment'] . '" class="input_check" />'; |
| 1738 | 1738 | }, |
| 1739 | 1739 | 'class' => 'centertext', |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | 'settings' => array( |
| 43 | 43 | 'cal_enabled' => 1, |
| 44 | 44 | ), |
| 45 | - 'setting_callback' => function ($value) { |
|
| 45 | + 'setting_callback' => function($value) { |
|
| 46 | 46 | if ($value) |
| 47 | 47 | { |
| 48 | 48 | enableModules('calendar', array('admin', 'post', 'boardindex', 'display')); |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | 'value' => $txt['date'], |
| 165 | 165 | ), |
| 166 | 166 | 'data' => array( |
| 167 | - 'function' => function ($rowData) { |
|
| 167 | + 'function' => function($rowData) { |
|
| 168 | 168 | global $txt; |
| 169 | 169 | |
| 170 | 170 | // Recurring every year or just a single year? |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | 'base_href' => $scripturl . '?action=admin;area=languages', |
| 189 | 189 | 'title' => $txt['edit_languages'], |
| 190 | 190 | 'data_check' => array( |
| 191 | - 'class' => function ($rowData) { |
|
| 191 | + 'class' => function($rowData) { |
|
| 192 | 192 | if ($rowData['default']) |
| 193 | 193 | return 'highlight2'; |
| 194 | 194 | else |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | 'class' => 'centertext', |
| 209 | 209 | ), |
| 210 | 210 | 'data' => array( |
| 211 | - 'function' => function ($rowData) { |
|
| 211 | + 'function' => function($rowData) { |
|
| 212 | 212 | return '<input type="radio" name="def_language" value="' . $rowData['id'] . '" ' . ($rowData['default'] ? 'checked="checked"' : '') . ' class="input_radio" />'; |
| 213 | 213 | }, |
| 214 | 214 | 'style' => 'width: 8%;', |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | 'value' => $txt['languages_lang_name'], |
| 221 | 221 | ), |
| 222 | 222 | 'data' => array( |
| 223 | - 'function' => function ($rowData) { |
|
| 223 | + 'function' => function($rowData) { |
|
| 224 | 224 | global $scripturl; |
| 225 | 225 | |
| 226 | 226 | return sprintf('<a href="%1$s?action=admin;area=languages;sa=editlang;lid=%2$s">%3$s<i class="icon icon-small i-modify"></i></a>', $scripturl, $rowData['id'], $rowData['name']); |
@@ -536,7 +536,7 @@ discard block |
||
| 536 | 536 | 'id' => 'lang_main_files_list', |
| 537 | 537 | 'title' => $txt['languages_download_main_files'], |
| 538 | 538 | 'get_items' => array( |
| 539 | - 'function' => function () { |
|
| 539 | + 'function' => function() { |
|
| 540 | 540 | global $context; |
| 541 | 541 | return $context['files']['lang']; |
| 542 | 542 | }, |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | 'value' => $txt['languages_download_filename'], |
| 548 | 548 | ), |
| 549 | 549 | 'data' => array( |
| 550 | - 'function' => function ($rowData) { |
|
| 550 | + 'function' => function($rowData) { |
|
| 551 | 551 | global $txt; |
| 552 | 552 | |
| 553 | 553 | return '<strong>' . $rowData['name'] . '</strong><br /><span class="smalltext">' . $txt['languages_download_dest'] . ': ' . $rowData['destination'] . '</span>' . ($rowData['version_compare'] == 'older' ? '<br />' . $txt['languages_download_older'] : ''); |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | 'value' => $txt['languages_download_writable'], |
| 560 | 560 | ), |
| 561 | 561 | 'data' => array( |
| 562 | - 'function' => function ($rowData) { |
|
| 562 | + 'function' => function($rowData) { |
|
| 563 | 563 | global $txt; |
| 564 | 564 | |
| 565 | 565 | return '<span class="' . ($rowData['writable'] ? 'success' : 'error') . ';">' . ($rowData['writable'] ? $txt['yes'] : $txt['no']) . '</span>'; |
@@ -571,7 +571,7 @@ discard block |
||
| 571 | 571 | 'value' => $txt['languages_download_version'], |
| 572 | 572 | ), |
| 573 | 573 | 'data' => array( |
| 574 | - 'function' => function ($rowData) { |
|
| 574 | + 'function' => function($rowData) { |
|
| 575 | 575 | return '<span class="' . ($rowData['version_compare'] == 'older' ? 'error' : ($rowData['version_compare'] == 'same' ? 'softalert' : 'success')) . ';">' . $rowData['version'] . '</span>'; |
| 576 | 576 | }, |
| 577 | 577 | ), |
@@ -581,7 +581,7 @@ discard block |
||
| 581 | 581 | 'value' => $txt['languages_download_exists'], |
| 582 | 582 | ), |
| 583 | 583 | 'data' => array( |
| 584 | - 'function' => function ($rowData) { |
|
| 584 | + 'function' => function($rowData) { |
|
| 585 | 585 | global $txt; |
| 586 | 586 | |
| 587 | 587 | return $rowData['exists'] ? ($rowData['exists'] == 'same' ? $txt['languages_download_exists_same'] : $txt['languages_download_exists_different']) : $txt['no']; |
@@ -594,7 +594,7 @@ discard block |
||
| 594 | 594 | 'class' => 'centertext', |
| 595 | 595 | ), |
| 596 | 596 | 'data' => array( |
| 597 | - 'function' => function ($rowData) { |
|
| 597 | + 'function' => function($rowData) { |
|
| 598 | 598 | return '<input type="checkbox" name="copy_file[]" value="' . $rowData['generaldest'] . '" ' . ($rowData['default_copy'] ? 'checked="checked"' : '') . ' class="input_check" />'; |
| 599 | 599 | }, |
| 600 | 600 | 'style' => 'width: 4%;', |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | ); |
| 685 | 685 | } |
| 686 | 686 | $dir->close(); |
| 687 | - usort($context['possible_files'][$theme]['files'], function ($val1, $val2) { |
|
| 687 | + usort($context['possible_files'][$theme]['files'], function($val1, $val2) { |
|
| 688 | 688 | return strcmp($val1['name'], $val2['name']); |
| 689 | 689 | }); |
| 690 | 690 | } |
@@ -935,7 +935,7 @@ discard block |
||
| 935 | 935 | 'style' => 'width: 25%;', |
| 936 | 936 | ), |
| 937 | 937 | 'data' => array( |
| 938 | - 'function' => function ($package_md5) use ($type) { |
|
| 938 | + 'function' => function($package_md5) use ($type) { |
|
| 939 | 939 | global $context; |
| 940 | 940 | |
| 941 | 941 | if (isset($context['available_' . $type . ''][$package_md5])) |
@@ -955,7 +955,7 @@ discard block |
||
| 955 | 955 | 'style' => 'width: 25%;', |
| 956 | 956 | ), |
| 957 | 957 | 'data' => array( |
| 958 | - 'function' => function ($package_md5) use ($type) { |
|
| 958 | + 'function' => function($package_md5) use ($type) { |
|
| 959 | 959 | global $context; |
| 960 | 960 | |
| 961 | 961 | if (isset($context['available_' . $type . ''][$package_md5])) |
@@ -974,7 +974,7 @@ discard block |
||
| 974 | 974 | 'value' => '', |
| 975 | 975 | ), |
| 976 | 976 | 'data' => array( |
| 977 | - 'function' => function ($package_md5) use ($type) { |
|
| 977 | + 'function' => function($package_md5) use ($type) { |
|
| 978 | 978 | global $context, $scripturl, $txt; |
| 979 | 979 | |
| 980 | 980 | if (!isset($context['available_' . $type . ''][$package_md5])) |