@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return null; |
49 | 49 | } |
50 | 50 | if (PasswordCompat\binary\_strlen($password) > 72) { |
51 | - $password = PasswordCompat\binary\_substr($password, 0,72); |
|
51 | + $password = PasswordCompat\binary\_substr($password, 0, 72); |
|
52 | 52 | } |
53 | 53 | $resultLength = 0; |
54 | 54 | switch ($algo) { |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | return false; |
237 | 237 | } |
238 | 238 | if (PasswordCompat\binary\_strlen($password) > 72) { |
239 | - $password = PasswordCompat\binary\_substr($password, 0,72); |
|
239 | + $password = PasswordCompat\binary\_substr($password, 0, 72); |
|
240 | 240 | } |
241 | 241 | $ret = crypt($password, $hash); |
242 | 242 | if (!is_string($ret) || PasswordCompat\binary\_strlen($ret) != PasswordCompat\binary\_strlen($hash) || PasswordCompat\binary\_strlen($ret) <= 13) { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | 'value' => $txt['membergroups_name'], |
102 | 102 | ), |
103 | 103 | 'data' => array( |
104 | - 'function' => function ($rowData) use ($scripturl) |
|
104 | + 'function' => function($rowData) use ($scripturl) |
|
105 | 105 | { |
106 | 106 | // Since the moderator group has no explicit members, no link is needed. |
107 | 107 | if ($rowData['id_group'] == 3) |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | 'class' => 'centercol', |
145 | 145 | ), |
146 | 146 | 'data' => array( |
147 | - 'function' => function ($rowData) use ($txt) |
|
147 | + 'function' => function($rowData) use ($txt) |
|
148 | 148 | { |
149 | 149 | // No explicit members for the moderator group. |
150 | 150 | return $rowData['id_group'] == 3 ? $txt['membergroups_guests_na'] : comma_format($rowData['num_members']); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | 'value' => $txt['membergroups_name'], |
211 | 211 | ), |
212 | 212 | 'data' => array( |
213 | - 'function' => function ($rowData) use ($scripturl) |
|
213 | + 'function' => function($rowData) use ($scripturl) |
|
214 | 214 | { |
215 | 215 | $colorStyle = empty($rowData['online_color']) ? '' : sprintf(' style="color: %1$s;"', $rowData['online_color']); |
216 | 216 | return sprintf('<a href="%1$s?action=moderate;area=viewgroups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $colorStyle, $rowData['group_name']); |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | 'style' => 'width: 20%;', |
303 | 303 | ), |
304 | 304 | 'data' => array( |
305 | - 'function' => function ($warning) |
|
305 | + 'function' => function($warning) |
|
306 | 306 | { |
307 | 307 | return $warning['issuer']['link']; |
308 | 308 | }, |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | 'value' => $txt['profile_warning_previous_reason'], |
331 | 331 | ), |
332 | 332 | 'data' => array( |
333 | - 'function' => function ($warning) use ($scripturl, $txt) |
|
333 | + 'function' => function($warning) use ($scripturl, $txt) |
|
334 | 334 | { |
335 | 335 | $ret = ' |
336 | 336 | <div class="floatleft"> |
@@ -103,7 +103,7 @@ |
||
103 | 103 | // Same as for approving, kind of. |
104 | 104 | foreach ($affected_users as $user) |
105 | 105 | { |
106 | - $pref = !empty($prefs[$user['member_id']]['groupr_' . $pref_name]) ? $prefs[$user['member_id']]['groupr_'. $pref_name] : 0; |
|
106 | + $pref = !empty($prefs[$user['member_id']]['groupr_' . $pref_name]) ? $prefs[$user['member_id']]['groupr_' . $pref_name] : 0; |
|
107 | 107 | $custom_reason = isset($this->_details['reason']) && isset($this->_details['reason'][$user['rid']]) ? $this->_details['reason'][$user['rid']] : ''; |
108 | 108 | |
109 | 109 | if ($pref & 0x01) |
@@ -619,7 +619,7 @@ discard block |
||
619 | 619 | FROM {db_prefix}pm_recipients AS pmr' . ($context['display_mode'] == 2 ? ' |
620 | 620 | INNER JOIN {db_prefix}personal_messages AS pm ON (pm.id_pm = pmr.id_pm)' : '') . $labelJoin . ' |
621 | 621 | WHERE pmr.id_member = {int:current_member} |
622 | - AND pmr.deleted = {int:not_deleted}' . $labelQuery . $labelQuery2 . ' |
|
622 | + AND pmr.deleted = {int:not_deleted}' . $labelQuery . $labelQuery2 . ' |
|
623 | 623 | AND pmr.id_pm ' . ($descending ? '>' : '<') . ' {int:id_pm}', |
624 | 624 | array( |
625 | 625 | 'current_member' => $user_info['id'], |
@@ -682,12 +682,12 @@ discard block |
||
682 | 682 | INNER JOIN {db_prefix}pm_recipients AS pmr ON (pmr.id_pm = pm.id_pm |
683 | 683 | AND pmr.id_member = {int:current_member} |
684 | 684 | AND pmr.deleted = {int:deleted_by} |
685 | - ' . $labelQuery . ')') . $labelJoin . ($context['sort_by'] == 'name' ? ( ' |
|
685 | + ' . $labelQuery . ')') . $labelJoin . ($context['sort_by'] == 'name' ? (' |
|
686 | 686 | LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = {raw:pm_member})') : '') . ' |
687 | 687 | WHERE ' . ($context['folder'] == 'sent' ? 'pm.id_member_from = {int:current_member} |
688 | 688 | AND pm.deleted_by_sender = {int:deleted_by}' : '1=1') . (empty($pmsg) ? '' : ' |
689 | 689 | AND pm.id_pm = {int:pmsg}') . $labelQuery2 . ' |
690 | - GROUP BY pm.id_pm_head'.($_GET['sort'] != 'pm.id_pm' ? ','.$_GET['sort'] : '').' |
|
690 | + GROUP BY pm.id_pm_head'.($_GET['sort'] != 'pm.id_pm' ? ',' . $_GET['sort'] : '') . ' |
|
691 | 691 | ORDER BY ' . ($_GET['sort'] == 'pm.id_pm' && $context['folder'] != 'sent' ? 'id_pm' : '{raw:sort}') . ($descending ? ' DESC' : ' ASC') . (empty($_GET['pmsg']) ? ' |
692 | 692 | LIMIT ' . $_GET['start'] . ', ' . $maxPerPage : ''), |
693 | 693 | array( |
@@ -711,7 +711,7 @@ discard block |
||
711 | 711 | INNER JOIN {db_prefix}pm_recipients AS pmr ON (pmr.id_pm = pm.id_pm |
712 | 712 | AND pmr.id_member = {int:current_member} |
713 | 713 | AND pmr.deleted = {int:is_deleted} |
714 | - ' . $labelQuery . ')') . $labelJoin . ($context['sort_by'] == 'name' ? ( ' |
|
714 | + ' . $labelQuery . ')') . $labelJoin . ($context['sort_by'] == 'name' ? (' |
|
715 | 715 | LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = {raw:pm_member})') : '') . ' |
716 | 716 | WHERE ' . ($context['folder'] == 'sent' ? 'pm.id_member_from = {raw:current_member} |
717 | 717 | AND pm.deleted_by_sender = {int:is_deleted}' : '1=1') . (empty($pmsg) ? '' : ' |
@@ -848,7 +848,7 @@ discard block |
||
848 | 848 | ) |
849 | 849 | ); |
850 | 850 | |
851 | - while($row2 = $smcFunc['db_fetch_assoc']($request2)) |
|
851 | + while ($row2 = $smcFunc['db_fetch_assoc']($request2)) |
|
852 | 852 | { |
853 | 853 | $l_id = $row2['id_label']; |
854 | 854 | if (isset($context['labels'][$l_id])) |
@@ -1626,7 +1626,7 @@ discard block |
||
1626 | 1626 | ) |
1627 | 1627 | ); |
1628 | 1628 | |
1629 | - while($row2 = $smcFunc['db_fetch_assoc']($request2)) |
|
1629 | + while ($row2 = $smcFunc['db_fetch_assoc']($request2)) |
|
1630 | 1630 | { |
1631 | 1631 | $l_id = $row2['id_label']; |
1632 | 1632 | if (isset($context['labels'][$l_id])) |
@@ -3723,7 +3723,7 @@ discard block |
||
3723 | 3723 | // Editing a specific one? |
3724 | 3724 | if (isset($_GET['add'])) |
3725 | 3725 | { |
3726 | - $context['rid'] = isset($_GET['rid']) && isset($context['rules'][$_GET['rid']])? (int) $_GET['rid'] : 0; |
|
3726 | + $context['rid'] = isset($_GET['rid']) && isset($context['rules'][$_GET['rid']]) ? (int) $_GET['rid'] : 0; |
|
3727 | 3727 | $context['sub_template'] = 'add_rule'; |
3728 | 3728 | |
3729 | 3729 | // Current rule information... |
@@ -3764,7 +3764,7 @@ discard block |
||
3764 | 3764 | elseif (isset($_GET['save'])) |
3765 | 3765 | { |
3766 | 3766 | checkSession(); |
3767 | - $context['rid'] = isset($_GET['rid']) && isset($context['rules'][$_GET['rid']])? (int) $_GET['rid'] : 0; |
|
3767 | + $context['rid'] = isset($_GET['rid']) && isset($context['rules'][$_GET['rid']]) ? (int) $_GET['rid'] : 0; |
|
3768 | 3768 | |
3769 | 3769 | // Name is easy! |
3770 | 3770 | $ruleName = $smcFunc['htmlspecialchars'](trim($_POST['rule_name'])); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | // Righty - let's do the damn thing! |
126 | 126 | $table_query = 'CREATE TABLE ' . $table_name . "\n" . '('; |
127 | 127 | foreach ($columns as $column) |
128 | - $table_query .= "\n\t" . smf_db_create_query_column($column) . ','; |
|
128 | + $table_query .= "\n\t" . smf_db_create_query_column($column) . ','; |
|
129 | 129 | |
130 | 130 | // Loop through the indexes next... |
131 | 131 | foreach ($indexes as $index) |
@@ -744,7 +744,7 @@ discard block |
||
744 | 744 | $type = $type . '(' . $size . ')'; |
745 | 745 | |
746 | 746 | // Now just put it together! |
747 | - return '`' .$column['name'] . '` ' . $type . ' ' . (!empty($unsigned) ? $unsigned : '') . (!empty($column['null']) ? '' : 'NOT NULL') . ' ' . $default; |
|
747 | + return '`' . $column['name'] . '` ' . $type . ' ' . (!empty($unsigned) ? $unsigned : '') . (!empty($column['null']) ? '' : 'NOT NULL') . ' ' . $default; |
|
748 | 748 | } |
749 | 749 | |
750 | 750 | ?> |
751 | 751 | \ No newline at end of file |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | if (!empty($db_options['persist'])) |
64 | 64 | $connection = @pg_pconnect('host=' . $db_server . ' dbname=' . $db_name . ' user=\'' . $db_user . '\' password=\'' . $db_passwd . '\'' . (empty($db_options['port']) ? '' : ' port=\'' . $db_options['port'] . '\'')); |
65 | 65 | else |
66 | - $connection = @pg_connect( 'host=' . $db_server . ' dbname=' . $db_name . ' user=\'' . $db_user . '\' password=\'' . $db_passwd . '\'' . (empty($db_options['port']) ? '' : ' port=\'' . $db_options['port'] . '\'')); |
|
66 | + $connection = @pg_connect('host=' . $db_server . ' dbname=' . $db_name . ' user=\'' . $db_user . '\' password=\'' . $db_passwd . '\'' . (empty($db_options['port']) ? '' : ' port=\'' . $db_options['port'] . '\'')); |
|
67 | 67 | |
68 | 68 | // Something's wrong, show an error if its fatal (which we assume it is) |
69 | 69 | if (!$connection) |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @param string $type Indicates which additional file to load. ('extra', 'packages') |
89 | 89 | */ |
90 | -function db_extend ($type = 'extra') |
|
90 | +function db_extend($type = 'extra') |
|
91 | 91 | { |
92 | 92 | global $sourcedir, $db_type; |
93 | 93 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @param string $db_prefix The database prefix |
104 | 104 | * @param string $db_name The database name |
105 | 105 | */ |
106 | -function db_fix_prefix (&$db_prefix, $db_name) |
|
106 | +function db_fix_prefix(&$db_prefix, $db_name) |
|
107 | 107 | { |
108 | 108 | return; |
109 | 109 | } |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $replacement[$key] = 'null'; |
237 | 237 | if (!isValidIP($value)) |
238 | 238 | smf_db_error_backtrace('Wrong value type sent to the database. IPv4 or IPv6 expected.(' . $matches[2] . ')', '', E_USER_ERROR, __FILE__, __LINE__); |
239 | - $replacement[$key] = sprintf('\'%1$s\'::inet', pg_escape_string($value)); |
|
239 | + $replacement[$key] = sprintf('\'%1$s\'::inet', pg_escape_string($value)); |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | return implode(', ', $replacement); |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | |
550 | 550 | // Log the error. |
551 | 551 | if (function_exists('log_error')) |
552 | - log_error($txt['database_error'] . ': ' . $query_error . (!empty($modSettings['enableErrorQueryLogging']) ? "\n\n" .$db_string : ''), 'database', $file, $line); |
|
552 | + log_error($txt['database_error'] . ': ' . $query_error . (!empty($modSettings['enableErrorQueryLogging']) ? "\n\n" . $db_string : ''), 'database', $file, $line); |
|
553 | 553 | |
554 | 554 | // Nothing's defined yet... just die with it. |
555 | 555 | if (empty($context) || empty($txt)) |
@@ -685,31 +685,31 @@ discard block |
||
685 | 685 | static $pg_version; |
686 | 686 | static $replace_support; |
687 | 687 | |
688 | - if(empty($pg_version)) |
|
688 | + if (empty($pg_version)) |
|
689 | 689 | { |
690 | 690 | db_extend(); |
691 | 691 | //pg 9.5 got replace support |
692 | 692 | $pg_version = $smcFunc['db_get_version'](); |
693 | 693 | // if we got a Beta Version |
694 | 694 | if (stripos($pg_version, 'beta') !== false) |
695 | - $pg_version = substr($pg_version, 0, stripos($pg_version, 'beta')).'.0'; |
|
695 | + $pg_version = substr($pg_version, 0, stripos($pg_version, 'beta')) . '.0'; |
|
696 | 696 | // or RC |
697 | 697 | if (stripos($pg_version, 'rc') !== false) |
698 | - $pg_version = substr($pg_version, 0, stripos($pg_version, 'rc')).'.0'; |
|
698 | + $pg_version = substr($pg_version, 0, stripos($pg_version, 'rc')) . '.0'; |
|
699 | 699 | |
700 | - $replace_support = (version_compare($pg_version,'9.5.0','>=') ? true : false); |
|
700 | + $replace_support = (version_compare($pg_version, '9.5.0', '>=') ? true : false); |
|
701 | 701 | } |
702 | 702 | |
703 | 703 | $count = 0; |
704 | 704 | $where = ''; |
705 | 705 | $count_pk = 0; |
706 | 706 | |
707 | - If($replace_support) |
|
707 | + If ($replace_support) |
|
708 | 708 | { |
709 | 709 | foreach ($columns as $columnName => $type) |
710 | 710 | { |
711 | 711 | //check pk fiel |
712 | - IF(in_array($columnName, $keys)) |
|
712 | + IF (in_array($columnName, $keys)) |
|
713 | 713 | { |
714 | 714 | $key_str .= ($count_pk > 0 ? ',' : ''); |
715 | 715 | $key_str .= $columnName; |
@@ -718,11 +718,11 @@ discard block |
||
718 | 718 | else //normal field |
719 | 719 | { |
720 | 720 | $col_str .= ($count > 0 ? ',' : ''); |
721 | - $col_str .= $columnName.' = EXCLUDED.'.$columnName; |
|
721 | + $col_str .= $columnName . ' = EXCLUDED.' . $columnName; |
|
722 | 722 | $count++; |
723 | 723 | } |
724 | 724 | } |
725 | - $replace = ' ON CONFLICT ('.$key_str.') DO UPDATE SET '.$col_str; |
|
725 | + $replace = ' ON CONFLICT (' . $key_str . ') DO UPDATE SET ' . $col_str; |
|
726 | 726 | } |
727 | 727 | else |
728 | 728 | { |
@@ -782,7 +782,7 @@ discard block |
||
782 | 782 | $smcFunc['db_query']('', ' |
783 | 783 | INSERT INTO ' . $table . '("' . implode('", "', $indexed_columns) . '") |
784 | 784 | VALUES |
785 | - ' . $entry.$replace, |
|
785 | + ' . $entry . $replace, |
|
786 | 786 | array( |
787 | 787 | 'security_override' => true, |
788 | 788 | 'db_error_skip' => $method == 'ignore' || $table === $db_prefix . 'log_errors', |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | * @param bool $translate_human_wildcards If true, turns human readable wildcards into SQL wildcards. |
878 | 878 | * @return string The escaped string |
879 | 879 | */ |
880 | -function smf_db_escape_wildcard_string($string, $translate_human_wildcards=false) |
|
880 | +function smf_db_escape_wildcard_string($string, $translate_human_wildcards = false) |
|
881 | 881 | { |
882 | 882 | $replacements = array( |
883 | 883 | '%' => '\%', |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | locked = {int:locked}, |
86 | 86 | is_sticky = {int:is_sticky} |
87 | 87 | WHERE id_draft = {int:id_draft}', |
88 | - array ( |
|
88 | + array( |
|
89 | 89 | 'id_topic' => $topic_id, |
90 | 90 | 'id_board' => $board, |
91 | 91 | 'poster_time' => time(), |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | DELETE FROM {db_prefix}user_drafts |
411 | 411 | WHERE id_draft IN ({array_int:id_draft})' . ($check ? ' |
412 | 412 | AND id_member = {int:id_member}' : ''), |
413 | - array ( |
|
413 | + array( |
|
414 | 414 | 'id_draft' => $id_draft, |
415 | 415 | 'id_member' => empty($user_info['id']) ? -1 : $user_info['id'], |
416 | 416 | ) |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | $context['drafts'][] = array( |
472 | 472 | 'subject' => censorText(shorten_subject(stripslashes($row['subject']), 24)), |
473 | 473 | 'poster_time' => timeformat($row['poster_time']), |
474 | - 'link' => '<a href="' . $scripturl . '?action=post;board=' . $row['id_board'] . ';' . (!empty($row['id_topic']) ? 'topic='. $row['id_topic'] .'.0;' : '') . 'id_draft=' . $row['id_draft'] . '">' . $row['subject'] . '</a>', |
|
474 | + 'link' => '<a href="' . $scripturl . '?action=post;board=' . $row['id_board'] . ';' . (!empty($row['id_topic']) ? 'topic=' . $row['id_topic'] . '.0;' : '') . 'id_draft=' . $row['id_draft'] . '">' . $row['subject'] . '</a>', |
|
475 | 475 | ); |
476 | 476 | // PM drafts |
477 | 477 | elseif ($draft_type === 1) |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | 'id' => 'lang_main_files_list', |
475 | 475 | 'title' => $txt['languages_download_main_files'], |
476 | 476 | 'get_items' => array( |
477 | - 'function' => function () use ($context) |
|
477 | + 'function' => function() use ($context) |
|
478 | 478 | { |
479 | 479 | return $context['files']['lang']; |
480 | 480 | }, |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | 'value' => $txt['languages_download_filename'], |
486 | 486 | ), |
487 | 487 | 'data' => array( |
488 | - 'function' => function ($rowData) use ($txt) |
|
488 | + 'function' => function($rowData) use ($txt) |
|
489 | 489 | { |
490 | 490 | 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'] : ''); |
491 | 491 | }, |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | 'value' => $txt['languages_download_writable'], |
497 | 497 | ), |
498 | 498 | 'data' => array( |
499 | - 'function' => function ($rowData) use ($txt) |
|
499 | + 'function' => function($rowData) use ($txt) |
|
500 | 500 | { |
501 | 501 | return '<span style="color: ' . ($rowData['writable'] ? 'green' : 'red') . ';">' . ($rowData['writable'] ? $txt['yes'] : $txt['no']) . '</span>'; |
502 | 502 | }, |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | 'value' => $txt['languages_download_version'], |
508 | 508 | ), |
509 | 509 | 'data' => array( |
510 | - 'function' => function ($rowData) use ($txt) |
|
510 | + 'function' => function($rowData) use ($txt) |
|
511 | 511 | { |
512 | 512 | return '<span style="color: ' . ($rowData['version_compare'] == 'older' ? 'red' : ($rowData['version_compare'] == 'same' ? 'orange' : 'green')) . ';">' . $rowData['version'] . '</span>'; |
513 | 513 | }, |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | 'value' => $txt['languages_download_exists'], |
519 | 519 | ), |
520 | 520 | 'data' => array( |
521 | - 'function' => function ($rowData) use ($txt) |
|
521 | + 'function' => function($rowData) use ($txt) |
|
522 | 522 | { |
523 | 523 | return $rowData['exists'] ? ($rowData['exists'] == 'same' ? $txt['languages_download_exists_same'] : $txt['languages_download_exists_different']) : $txt['no']; |
524 | 524 | }, |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | 'class' => 'centercol', |
531 | 531 | ), |
532 | 532 | 'data' => array( |
533 | - 'function' => function ($rowData) |
|
533 | + 'function' => function($rowData) |
|
534 | 534 | { |
535 | 535 | return '<input type="checkbox" name="copy_file[]" value="' . $rowData['generaldest'] . '"' . ($rowData['default_copy'] ? ' checked' : '') . ' class="input_check">'; |
536 | 536 | }, |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | 'class' => 'centercol', |
610 | 610 | ), |
611 | 611 | 'data' => array( |
612 | - 'function' => function ($rowData) |
|
612 | + 'function' => function($rowData) |
|
613 | 613 | { |
614 | 614 | return '<input type="radio" name="def_language" value="' . $rowData['id'] . '"' . ($rowData['default'] ? ' checked' : '') . ' onclick="highlightSelected(\'list_language_list_' . $rowData['id'] . '\');" class="input_radio">'; |
615 | 615 | }, |
@@ -622,7 +622,7 @@ discard block |
||
622 | 622 | 'value' => $txt['languages_lang_name'], |
623 | 623 | ), |
624 | 624 | 'data' => array( |
625 | - 'function' => function ($rowData) use ($scripturl) |
|
625 | + 'function' => function($rowData) use ($scripturl) |
|
626 | 626 | { |
627 | 627 | return sprintf('<a href="%1$s?action=admin;area=languages;sa=editlang;lid=%2$s">%3$s</a>', $scripturl, $rowData['id'], $rowData['name']); |
628 | 628 | }, |
@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | $("tr.highlight2").removeClass("highlight2"); |
677 | 677 | $("#" + box).addClass("highlight2"); |
678 | 678 | } |
679 | - highlightSelected("list_language_list_' . ($language == '' ? 'english' : $language). '");', true); |
|
679 | + highlightSelected("list_language_list_' . ($language == '' ? 'english' : $language) . '");', true); |
|
680 | 680 | |
681 | 681 | // Display a warning if we cannot edit the default setting. |
682 | 682 | if (!is_writable($boarddir . '/Settings.php')) |
@@ -931,7 +931,7 @@ discard block |
||
931 | 931 | ); |
932 | 932 | } |
933 | 933 | $dir->close(); |
934 | - usort($context['possible_files'][$theme]['files'], function ($val1, $val2) |
|
934 | + usort($context['possible_files'][$theme]['files'], function($val1, $val2) |
|
935 | 935 | { |
936 | 936 | return strcmp($val1['name'], $val2['name']); |
937 | 937 | }); |