@@ -1336,7 +1336,7 @@ |
||
1336 | 1336 | 'value' => $txt['hooks_field_function_name'], |
1337 | 1337 | ), |
1338 | 1338 | 'data' => array( |
1339 | - 'function' => static function ($data) { |
|
1339 | + 'function' => static function($data) { |
|
1340 | 1340 | global $txt; |
1341 | 1341 | |
1342 | 1342 | if (!empty($data['included_file'])) |
@@ -1145,7 +1145,7 @@ |
||
1145 | 1145 | 'value' => $txt['smileys_description'], |
1146 | 1146 | ], |
1147 | 1147 | 'data' => [ |
1148 | - 'function' => static function ($rowData) use ($fileFunc) { |
|
1148 | + 'function' => static function($rowData) use ($fileFunc) { |
|
1149 | 1149 | global $context, $txt, $modSettings; |
1150 | 1150 | |
1151 | 1151 | if (empty($modSettings['smileys_dir']) || !$fileFunc->isDir($modSettings['smileys_dir'])) |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | 'value' => $txt['error'], |
171 | 171 | ), |
172 | 172 | 'data' => array( |
173 | - 'function' => static function ($rowData) { |
|
173 | + 'function' => static function($rowData) { |
|
174 | 174 | $error = $rowData['error_code']; |
175 | 175 | if ($error === 'error_pm_not_found') |
176 | 176 | { |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | 'value' => $txt['message_type'], |
246 | 246 | ), |
247 | 247 | 'data' => array( |
248 | - 'function' => static function ($rowData) { |
|
248 | + 'function' => static function($rowData) { |
|
249 | 249 | global $txt; |
250 | 250 | |
251 | 251 | // Do we have a type? |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | 'value' => $txt['message_action'], |
280 | 280 | ), |
281 | 281 | 'data' => array( |
282 | - 'function' => static function ($rowData) { |
|
282 | + 'function' => static function($rowData) { |
|
283 | 283 | global $context, $txt; |
284 | 284 | |
285 | 285 | $id = $rowData['id_email'] . ';'; |
@@ -392,7 +392,7 @@ |
||
392 | 392 | 'class' => 'centertext', |
393 | 393 | ), |
394 | 394 | 'data' => array( |
395 | - 'function' => static function ($rowData) { |
|
395 | + 'function' => static function($rowData) { |
|
396 | 396 | global $txt; |
397 | 397 | |
398 | 398 | // We probably have a text label with your priority. |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | 'value' => $txt['membergroups_name'], |
205 | 205 | ), |
206 | 206 | 'data' => array( |
207 | - 'function' => static function ($rowData) { |
|
207 | + 'function' => static function($rowData) { |
|
208 | 208 | global $txt; |
209 | 209 | // Since the moderator group has no explicit members, no link is needed. |
210 | 210 | // Since guests and regular members are not groups, no link is needed. |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | 'class' => 'grid17', |
245 | 245 | ), |
246 | 246 | 'data' => array( |
247 | - 'function' => static function ($rowData) { |
|
247 | + 'function' => static function($rowData) { |
|
248 | 248 | global $txt; |
249 | 249 | |
250 | 250 | // No explicit members for guests and the moderator group. |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | 'class' => 'grid17', |
292 | 292 | ), |
293 | 293 | 'data' => array( |
294 | - 'function' => function ($rowData) { |
|
294 | + 'function' => function($rowData) { |
|
295 | 295 | global $txt; |
296 | 296 | |
297 | 297 | if ($rowData['id_group'] != 1) |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | 'style' => 'width:4%;', |
311 | 311 | ), |
312 | 312 | 'data' => array( |
313 | - 'function' => static function ($rowData) { |
|
313 | + 'function' => static function($rowData) { |
|
314 | 314 | if ($rowData['id_group'] !== 1) |
315 | 315 | { |
316 | 316 | return '<input type="checkbox" name="group[]" value="' . $rowData['id_group'] . '" class="input_check" />'; |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | 'class' => 'grid10', |
385 | 385 | ), |
386 | 386 | 'data' => array( |
387 | - 'function' => static function ($rowData) { |
|
387 | + 'function' => static function($rowData) { |
|
388 | 388 | if ($rowData['can_search']) |
389 | 389 | { |
390 | 390 | return '<a href="' . getUrl('action', ['action' => 'moderate', 'area' => 'viewgroups', 'sa' => 'members', 'group' => $rowData['id_group']]) . '">' . comma_format($rowData['num_members']) . '</a>'; |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | 'class' => 'grid17', |
424 | 424 | ), |
425 | 425 | 'data' => array( |
426 | - 'function' => function ($rowData) { |
|
426 | + 'function' => function($rowData) { |
|
427 | 427 | global $txt; |
428 | 428 | |
429 | 429 | if ($rowData['id_parent'] == -2) |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | 'drafts_autosave_enabled' => 2, |
46 | 46 | 'drafts_show_saved_enabled' => 2, |
47 | 47 | ), |
48 | - 'setting_callback' => static function ($value) { |
|
48 | + 'setting_callback' => static function($value) { |
|
49 | 49 | require_once(SUBSDIR . '/ScheduledTasks.subs.php'); |
50 | 50 | toggleTaskStatusByName('remove_old_drafts', $value); |
51 | 51 | $modules = array('admin', 'post', 'display', 'profile', 'personalmessage'); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | */ |
148 | 148 | public static function integrate_sa_manage_maintenance(&$subActions) |
149 | 149 | { |
150 | - $subActions['topics']['activities']['olddrafts'] = static function () { |
|
150 | + $subActions['topics']['activities']['olddrafts'] = static function() { |
|
151 | 151 | $controller = new ManageDraftsModule(new EventManager()); |
152 | 152 | $controller->setUser(User::$info); |
153 | 153 | $controller->pre_dispatch(); |
@@ -277,7 +277,7 @@ |
||
277 | 277 | 'value' => $txt['spider_last_seen'], |
278 | 278 | ), |
279 | 279 | 'data' => array( |
280 | - 'function' => static function ($rowData) { |
|
280 | + 'function' => static function($rowData) { |
|
281 | 281 | global $context, $txt; |
282 | 282 | |
283 | 283 | return isset($context['spider_last_seen'][$rowData['id_spider']]) ? standardTime($context['spider_last_seen'][$rowData['id_spider']]) : $txt['spider_last_never']; |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | 'value' => $txt['viewmembers_online'], |
529 | 529 | ), |
530 | 530 | 'data' => array( |
531 | - 'function' => static function ($rowData) { |
|
531 | + 'function' => static function($rowData) { |
|
532 | 532 | global $txt; |
533 | 533 | |
534 | 534 | require_once(SUBSDIR . '/Members.subs.php'); |
@@ -1042,7 +1042,7 @@ discard block |
||
1042 | 1042 | 'value' => $context['current_filter'] == 4 ? $txt['viewmembers_online'] : $txt['date_registered'], |
1043 | 1043 | ), |
1044 | 1044 | 'data' => array( |
1045 | - 'function' => static function ($rowData) { |
|
1045 | + 'function' => static function($rowData) { |
|
1046 | 1046 | global $context; |
1047 | 1047 | return standardTime($rowData[($context['current_filter'] == 4 ? 'last_login' : 'date_registered')]); |
1048 | 1048 | }, |
@@ -1059,7 +1059,7 @@ discard block |
||
1059 | 1059 | 'style' => 'width: 20%;', |
1060 | 1060 | ), |
1061 | 1061 | 'data' => array( |
1062 | - 'function' => static function ($rowData) { |
|
1062 | + 'function' => static function($rowData) { |
|
1063 | 1063 | global $txt; |
1064 | 1064 | |
1065 | 1065 | $member_links = array(); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | 'value' => $txt['ban_added'], |
209 | 209 | ), |
210 | 210 | 'data' => array( |
211 | - 'function' => static function ($rowData) { |
|
211 | + 'function' => static function($rowData) { |
|
212 | 212 | global $context; |
213 | 213 | return standardTime($rowData['ban_time'], empty($context['ban_time_format']) ? true : $context['ban_time_format']); |
214 | 214 | }, |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | 'value' => $txt['ban_expires'], |
224 | 224 | ), |
225 | 225 | 'data' => array( |
226 | - 'function' => static function ($rowData) { |
|
226 | + 'function' => static function($rowData) { |
|
227 | 227 | global $txt; |
228 | 228 | // This ban never expires...whahaha. |
229 | 229 | if ($rowData['expire_time'] === null) |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | 'style' => 'width: 60%;', |
378 | 378 | ), |
379 | 379 | 'data' => array( |
380 | - 'function' => static function ($ban_item) { |
|
380 | + 'function' => static function($ban_item) { |
|
381 | 381 | global $txt; |
382 | 382 | |
383 | 383 | if (in_array($ban_item['type'], array('ip', 'hostname', 'email'))) |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | 'style' => 'width: 15%;', |
411 | 411 | ), |
412 | 412 | 'data' => array( |
413 | - 'function' => static function ($ban_item) { |
|
413 | + 'function' => static function($ban_item) { |
|
414 | 414 | global $txt, $context; |
415 | 415 | return '<a href="' . getUrl('admin', ['action' => 'admin', 'area' => 'ban', 'sa' => 'edittrigger', 'bg' => $context['ban']['id'], 'bi' => $ban_item['id']]) . '">' . $txt['ban_edit_trigger'] . '</a>'; |
416 | 416 | }, |