@@ -206,12 +206,12 @@ discard block |
||
206 | 206 | |
207 | 207 | if (!empty($modSettings['search_simple_fulltext'])) |
208 | 208 | { |
209 | - if($smcFunc['db_title'] == "PostgreSQL") |
|
209 | + if ($smcFunc['db_title'] == "PostgreSQL") |
|
210 | 210 | { |
211 | 211 | //we use the default language "default_text_search_config", otherwise we had to assgine the language here |
212 | 212 | //to_tsvector(body) -> to_tsvector($language,body) to_tsquery(...) -> to_tsquery($language,...) |
213 | 213 | $language_ftx = 'english'; |
214 | - $request = $smcFunc['db_query']('',' |
|
214 | + $request = $smcFunc['db_query']('', ' |
|
215 | 215 | SHOW default_text_search_config', |
216 | 216 | array() |
217 | 217 | ); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | // remove any indexed words that are used in the complex body search terms |
236 | 236 | $words['indexed_words'] = array_diff($words['indexed_words'], $words['complex_words']); |
237 | 237 | |
238 | - if($smcFunc['db_title'] == "PostgreSQL"){ |
|
238 | + if ($smcFunc['db_title'] == "PostgreSQL") { |
|
239 | 239 | $row = 0; |
240 | 240 | foreach ($words['indexed_words'] as $fulltextWord) { |
241 | 241 | $query_params['boolean_match'] .= ($row <> 0 ? '&' : ''); |
@@ -251,12 +251,12 @@ discard block |
||
251 | 251 | |
252 | 252 | // if we have bool terms to search, add them in |
253 | 253 | if ($query_params['boolean_match']) { |
254 | - if($smcFunc['db_title'] == "PostgreSQL") |
|
254 | + if ($smcFunc['db_title'] == "PostgreSQL") |
|
255 | 255 | { |
256 | 256 | //we use the default language "default_text_search_config", otherwise we had to assgine the language here |
257 | 257 | //to_tsvector(body) -> to_tsvector($language,body) to_tsquery(...) -> to_tsquery($language,...) |
258 | 258 | $language_ftx = 'english'; |
259 | - $request = $smcFunc['db_query']('',' |
|
259 | + $request = $smcFunc['db_query']('', ' |
|
260 | 260 | SHOW default_text_search_config', |
261 | 261 | array() |
262 | 262 | ); |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | |
276 | 276 | } |
277 | 277 | |
278 | - $ignoreRequest = $smcFunc['db_search_query']('insert_into_log_messages_fulltext', ($smcFunc['db_support_ignore'] ? ( ' |
|
278 | + $ignoreRequest = $smcFunc['db_search_query']('insert_into_log_messages_fulltext', ($smcFunc['db_support_ignore'] ? (' |
|
279 | 279 | INSERT IGNORE INTO {db_prefix}' . $search_data['insert_into'] . ' |
280 | 280 | (' . implode(', ', array_keys($query_select)) . ')') : '') . ' |
281 | 281 | SELECT ' . implode(', ', $query_select) . ' |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | function isValidIPv6($ip) |
331 | 331 | { |
332 | 332 | //looking for : |
333 | - if (strpos($ip , ':') === false ) |
|
333 | + if (strpos($ip, ':') === false) |
|
334 | 334 | return false; |
335 | 335 | |
336 | 336 | //check valid address |
@@ -662,15 +662,15 @@ discard block |
||
662 | 662 | { |
663 | 663 | // Let's do something special for session ids! |
664 | 664 | if (defined('SID') && SID != '') |
665 | - $buffer = preg_replace_callback('~"' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#"]+?)(#[^"]*?)?"~', function ($m) |
|
665 | + $buffer = preg_replace_callback('~"' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#"]+?)(#[^"]*?)?"~', function($m) |
|
666 | 666 | { |
667 | 667 | global $scripturl; return '"' . $scripturl . "/" . strtr("$m[1]", '&;=', '//,') . ".html?" . SID . (isset($m[2]) ? $m[2] : "") . '"'; |
668 | 668 | }, $buffer); |
669 | 669 | else |
670 | - $buffer = preg_replace_callback('~"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"~', function ($m) |
|
670 | + $buffer = preg_replace_callback('~"' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?"~', function($m) |
|
671 | 671 | { |
672 | 672 | global $scripturl; return '"' . $scripturl . '/' . strtr("$m[1]", '&;=', '//,') . '.html' . (isset($m[2]) ? $m[2] : "") . '"'; |
673 | - }, $buffer ); |
|
673 | + }, $buffer); |
|
674 | 674 | } |
675 | 675 | |
676 | 676 | // Return the changed buffer. |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | 'class' => 'centercol', |
394 | 394 | ), |
395 | 395 | 'data' => array( |
396 | - 'function' => function ($rowData) |
|
396 | + 'function' => function($rowData) |
|
397 | 397 | { |
398 | 398 | return $rowData['selected'] ? '<span class="generic_icons valid"></span>' : ''; |
399 | 399 | }, |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | 'class' => 'centercol', |
454 | 454 | ), |
455 | 455 | 'data' => array( |
456 | - 'function' => function ($rowData) |
|
456 | + 'function' => function($rowData) |
|
457 | 457 | { |
458 | 458 | return $rowData['selected'] ? '' : sprintf('<input type="checkbox" name="smiley_set[%1$d]" class="input_check">', $rowData['id']); |
459 | 459 | }, |
@@ -997,7 +997,7 @@ discard block |
||
997 | 997 | 'value' => $txt['smileys_location'], |
998 | 998 | ), |
999 | 999 | 'data' => array( |
1000 | - 'function' => function ($rowData) use ($txt) |
|
1000 | + 'function' => function($rowData) use ($txt) |
|
1001 | 1001 | { |
1002 | 1002 | if (empty($rowData['hidden'])) |
1003 | 1003 | return $txt['smileys_location_form']; |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | 'value' => $txt['smileys_description'], |
1018 | 1018 | ), |
1019 | 1019 | 'data' => array( |
1020 | - 'function' => function ($rowData) use ($context, $txt, $modSettings, $smcFunc) |
|
1020 | + 'function' => function($rowData) use ($context, $txt, $modSettings, $smcFunc) |
|
1021 | 1021 | { |
1022 | 1022 | if (empty($modSettings['smileys_dir']) || !is_dir($modSettings['smileys_dir'])) |
1023 | 1023 | return $smcFunc['htmlspecialchars']($rowData['description']); |
@@ -1557,7 +1557,7 @@ discard block |
||
1557 | 1557 | 'action' => $smcFunc['htmlspecialchars'](strtr($action['destination'], array($boarddir => '.'))) |
1558 | 1558 | ); |
1559 | 1559 | |
1560 | - $file = $packagesdir . '/temp/' . $base_path . $action['filename']; |
|
1560 | + $file = $packagesdir . '/temp/' . $base_path . $action['filename']; |
|
1561 | 1561 | if (isset($action['filename']) && (!file_exists($file) || !is_writable(dirname($action['destination'])))) |
1562 | 1562 | { |
1563 | 1563 | $context['has_failure'] = true; |
@@ -1601,7 +1601,7 @@ discard block |
||
1601 | 1601 | { |
1602 | 1602 | updateSettings(array( |
1603 | 1603 | 'smiley_sets_known' => $modSettings['smiley_sets_known'] . ',' . basename($action['action']), |
1604 | - 'smiley_sets_names' => $modSettings['smiley_sets_names'] . "\n" . $smileyInfo['name'] . (count($context['actions']) > 1 ? ' ' . (!empty($action['description']) ? $smcFunc['htmlspecialchars']($action['description']) : basename($action['action'])) : ''), |
|
1604 | + 'smiley_sets_names' => $modSettings['smiley_sets_names'] . "\n" . $smileyInfo['name'] . (count($context['actions']) > 1 ? ' ' . (!empty($action['description']) ? $smcFunc['htmlspecialchars']($action['description']) : basename($action['action'])) : ''), |
|
1605 | 1605 | )); |
1606 | 1606 | } |
1607 | 1607 | |
@@ -1613,7 +1613,7 @@ discard block |
||
1613 | 1613 | '{db_prefix}log_packages', |
1614 | 1614 | array( |
1615 | 1615 | 'filename' => 'string', 'name' => 'string', 'package_id' => 'string', 'version' => 'string', |
1616 | - 'id_member_installed' => 'int', 'member_installed' => 'string','time_installed' => 'int', |
|
1616 | + 'id_member_installed' => 'int', 'member_installed' => 'string', 'time_installed' => 'int', |
|
1617 | 1617 | 'install_state' => 'int', 'failed_steps' => 'string', 'themes_installed' => 'string', |
1618 | 1618 | 'member_removed' => 'int', 'db_changes' => 'string', 'credits' => 'string', |
1619 | 1619 | ), |
@@ -1862,7 +1862,7 @@ discard block |
||
1862 | 1862 | 'columns' => array( |
1863 | 1863 | 'icon' => array( |
1864 | 1864 | 'data' => array( |
1865 | - 'function' => function ($rowData) use ($settings, $smcFunc) |
|
1865 | + 'function' => function($rowData) use ($settings, $smcFunc) |
|
1866 | 1866 | { |
1867 | 1867 | $images_url = $settings[file_exists(sprintf('%1$s/images/post/%2$s.png', $settings['theme_dir'], $rowData['filename'])) ? 'actual_images_url' : 'default_images_url']; |
1868 | 1868 | return sprintf('<img src="%1$s/post/%2$s.png" alt="%3$s">', $images_url, $rowData['filename'], $smcFunc['htmlspecialchars']($rowData['title'])); |
@@ -1896,7 +1896,7 @@ discard block |
||
1896 | 1896 | 'value' => $txt['icons_board'], |
1897 | 1897 | ), |
1898 | 1898 | 'data' => array( |
1899 | - 'function' => function ($rowData) use ($txt) |
|
1899 | + 'function' => function($rowData) use ($txt) |
|
1900 | 1900 | { |
1901 | 1901 | return empty($rowData['board_name']) ? $txt['icons_edit_icons_all_boards'] : $rowData['board_name']; |
1902 | 1902 | }, |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | 'value' => $txt['date'], |
137 | 137 | ), |
138 | 138 | 'data' => array( |
139 | - 'function' => function ($rowData) use ($txt) |
|
139 | + 'function' => function($rowData) use ($txt) |
|
140 | 140 | { |
141 | 141 | // Recurring every year or just a single year? |
142 | 142 | $year = $rowData['year'] == '0004' ? sprintf('(%1$s)', $txt['every_year']) : $rowData['year']; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | checkSession(); |
219 | 219 | |
220 | 220 | // Not too long good sir? |
221 | - $_REQUEST['title'] = $smcFunc['substr']($_REQUEST['title'], 0, 60); |
|
221 | + $_REQUEST['title'] = $smcFunc['substr']($_REQUEST['title'], 0, 60); |
|
222 | 222 | $_REQUEST['holiday'] = isset($_REQUEST['holiday']) ? (int) $_REQUEST['holiday'] : 0; |
223 | 223 | |
224 | 224 | if (isset($_REQUEST['delete'])) |
@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | 'member_name' => $regOptions['username'], |
587 | 587 | 'email_address' => $regOptions['email'], |
588 | 588 | 'passwd' => hash_password($regOptions['username'], $regOptions['password']), |
589 | - 'password_salt' => substr(md5(mt_rand()), 0, 4) , |
|
589 | + 'password_salt' => substr(md5(mt_rand()), 0, 4), |
|
590 | 590 | 'posts' => 0, |
591 | 591 | 'date_registered' => time(), |
592 | 592 | 'member_ip' => $regOptions['interface'] == 'admin' ? '127.0.0.1' : $user_info['ip'], |
@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | 'time_offset', |
677 | 677 | ); |
678 | 678 | $knownInets = array( |
679 | - 'member_ip','member_ip2', |
|
679 | + 'member_ip', 'member_ip2', |
|
680 | 680 | ); |
681 | 681 | |
682 | 682 | // Call an optional function to validate the users' input. |
@@ -904,7 +904,7 @@ discard block |
||
904 | 904 | $checkName = strtr($name, array('_' => '\\_', '%' => '\\%')); |
905 | 905 | |
906 | 906 | //when we got no wildcard we can use equal -> fast |
907 | - $operator = (strpos($checkName, '%') || strpos($checkName, '_') ? 'LIKE' : '=' ); |
|
907 | + $operator = (strpos($checkName, '%') || strpos($checkName, '_') ? 'LIKE' : '='); |
|
908 | 908 | |
909 | 909 | // Make sure they don't want someone else's name. |
910 | 910 | $request = $smcFunc['db_query']('', ' |
@@ -1273,7 +1273,7 @@ discard block |
||
1273 | 1273 | $user_info['buddies'][] = $userReceiver; |
1274 | 1274 | |
1275 | 1275 | // And add a nice alert. Don't abuse though! |
1276 | - if ((cache_get_data('Buddy-sent-'. $user_info['id'] .'-'. $userReceiver, 86400)) == null) |
|
1276 | + if ((cache_get_data('Buddy-sent-' . $user_info['id'] . '-' . $userReceiver, 86400)) == null) |
|
1277 | 1277 | { |
1278 | 1278 | $smcFunc['db_insert']('insert', |
1279 | 1279 | '{db_prefix}background_tasks', |
@@ -1288,7 +1288,7 @@ discard block |
||
1288 | 1288 | ); |
1289 | 1289 | |
1290 | 1290 | // Store this in a cache entry to avoid creating multiple alerts. Give it a long life cycle. |
1291 | - cache_put_data('Buddy-sent-'. $user_info['id'] .'-'. $userReceiver, '1', 86400); |
|
1291 | + cache_put_data('Buddy-sent-' . $user_info['id'] . '-' . $userReceiver, '1', 86400); |
|
1292 | 1292 | } |
1293 | 1293 | } |
1294 | 1294 |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | saveSettings($config_vars); |
249 | 249 | $_SESSION['adm-save'] = true; |
250 | - redirectexit('action=admin;area=serversettings;sa=database;' . $context['session_var'] . '=' . $context['session_id'] ); |
|
250 | + redirectexit('action=admin;area=serversettings;sa=database;' . $context['session_var'] . '=' . $context['session_id']); |
|
251 | 251 | } |
252 | 252 | |
253 | 253 | // Fill the config array. |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | array('localCookies', $txt['localCookies'], 'db', 'check', false, 'localCookies'), |
273 | 273 | array('globalCookies', $txt['globalCookies'], 'db', 'check', false, 'globalCookies'), |
274 | 274 | array('globalCookiesDomain', $txt['globalCookiesDomain'], 'db', 'text', false, 'globalCookiesDomain'), |
275 | - array('secureCookies', $txt['secureCookies'], 'db', 'check', false, 'secureCookies', 'disabled' => !isset($_SERVER['HTTPS']) || !(strtolower($_SERVER['HTTPS']) == 'on' || strtolower($_SERVER['HTTPS']) == '1')), |
|
275 | + array('secureCookies', $txt['secureCookies'], 'db', 'check', false, 'secureCookies', 'disabled' => !isset($_SERVER['HTTPS']) || !(strtolower($_SERVER['HTTPS']) == 'on' || strtolower($_SERVER['HTTPS']) == '1')), |
|
276 | 276 | array('httponlyCookies', $txt['httponlyCookies'], 'db', 'check', false, 'httponlyCookies'), |
277 | 277 | '', |
278 | 278 | // Sessions |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | COALESCE(mem.real_name, ms.poster_name) AS topic_started_name, ms.poster_time AS topic_started_time, |
160 | 160 | ' . ($user_info['is_guest'] ? 't.id_last_msg + 1' : 'COALESCE(lt.id_msg, lmr.id_msg, -1) + 1') . ' AS new_from |
161 | 161 | ' . (!empty($board_info['recycle']) ? ', id_previous_board, id_previous_topic' : '') . ' |
162 | - ' . (!empty($topic_selects) ? (', '. implode(', ', $topic_selects)) : '') . ' |
|
162 | + ' . (!empty($topic_selects) ? (', ' . implode(', ', $topic_selects)) : '') . ' |
|
163 | 163 | ' . (!$user_info['is_guest'] ? ', COALESCE(lt.unwatched, 0) as unwatched' : '') . ' |
164 | 164 | FROM {db_prefix}topics AS t |
165 | 165 | INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg) |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | WHERE INSTR(lo.url, {string:in_url_string}) > 0 OR lo.session = {string:session}', |
389 | 389 | array( |
390 | 390 | 'reg_id_group' => 0, |
391 | - 'in_url_string' => '"topic":'.$topic, |
|
391 | + 'in_url_string' => '"topic":' . $topic, |
|
392 | 392 | 'session' => $user_info['is_guest'] ? 'ip' . $user_info['ip'] : session_id(), |
393 | 393 | ) |
394 | 394 | ); |
@@ -457,8 +457,8 @@ discard block |
||
457 | 457 | $context['links'] = array( |
458 | 458 | 'first' => $_REQUEST['start'] >= $context['messages_per_page'] ? $scripturl . '?topic=' . $topic . '.0' : '', |
459 | 459 | 'prev' => $_REQUEST['start'] >= $context['messages_per_page'] ? $scripturl . '?topic=' . $topic . '.' . ($_REQUEST['start'] - $context['messages_per_page']) : '', |
460 | - 'next' => $_REQUEST['start'] + $context['messages_per_page'] < $context['total_visible_posts'] ? $scripturl . '?topic=' . $topic. '.' . ($_REQUEST['start'] + $context['messages_per_page']) : '', |
|
461 | - 'last' => $_REQUEST['start'] + $context['messages_per_page'] < $context['total_visible_posts'] ? $scripturl . '?topic=' . $topic. '.' . (floor($context['total_visible_posts'] / $context['messages_per_page']) * $context['messages_per_page']) : '', |
|
460 | + 'next' => $_REQUEST['start'] + $context['messages_per_page'] < $context['total_visible_posts'] ? $scripturl . '?topic=' . $topic . '.' . ($_REQUEST['start'] + $context['messages_per_page']) : '', |
|
461 | + 'last' => $_REQUEST['start'] + $context['messages_per_page'] < $context['total_visible_posts'] ? $scripturl . '?topic=' . $topic . '.' . (floor($context['total_visible_posts'] / $context['messages_per_page']) * $context['messages_per_page']) : '', |
|
462 | 462 | 'up' => $scripturl . '?board=' . $board . '.0' |
463 | 463 | ); |
464 | 464 | } |
@@ -1037,7 +1037,7 @@ discard block |
||
1037 | 1037 | id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, modified_reason, body, |
1038 | 1038 | smileys_enabled, poster_name, poster_email, approved, likes, |
1039 | 1039 | id_msg_modified < {int:new_from} AS is_read |
1040 | - ' . (!empty($msg_selects) ? (', '. implode(', ', $msg_selects)) : '') . ' |
|
1040 | + ' . (!empty($msg_selects) ? (', ' . implode(', ', $msg_selects)) : '') . ' |
|
1041 | 1041 | FROM {db_prefix}messages |
1042 | 1042 | ' . (!empty($msg_tables) ? implode("\n\t", $msg_tables) : '') . ' |
1043 | 1043 | WHERE id_msg IN ({array_int:message_list}) |
@@ -1681,17 +1681,17 @@ discard block |
||
1681 | 1681 | if (!empty($modSettings['attachmentRecodeLineEndings']) && !isset($_REQUEST['image']) && in_array($file_ext, array('txt', 'css', 'htm', 'html', 'php', 'xml'))) |
1682 | 1682 | { |
1683 | 1683 | if (strpos($_SERVER['HTTP_USER_AGENT'], 'Windows') !== false) |
1684 | - $callback = function ($buffer) |
|
1684 | + $callback = function($buffer) |
|
1685 | 1685 | { |
1686 | 1686 | return preg_replace('~[\r]?\n~', "\r\n", $buffer); |
1687 | 1687 | }; |
1688 | 1688 | elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') !== false) |
1689 | - $callback = function ($buffer) |
|
1689 | + $callback = function($buffer) |
|
1690 | 1690 | { |
1691 | 1691 | return preg_replace('~[\r]?\n~', "\r", $buffer); |
1692 | 1692 | }; |
1693 | 1693 | else |
1694 | - $callback = function ($buffer) |
|
1694 | + $callback = function($buffer) |
|
1695 | 1695 | { |
1696 | 1696 | return preg_replace('~[\r]?\n~', "\n", $buffer); |
1697 | 1697 | }; |
@@ -1772,7 +1772,7 @@ discard block |
||
1772 | 1772 | list($subname) = $smcFunc['db_fetch_row']($request); |
1773 | 1773 | $smcFunc['db_free_result']($request); |
1774 | 1774 | $_SESSION['split_selection'][$topic] = $messages; |
1775 | - redirectexit('action=splittopics;sa=selectTopics;topic=' . $topic . '.0;subname_enc=' .urlencode($subname) . ';' . $context['session_var'] . '=' . $context['session_id']); |
|
1775 | + redirectexit('action=splittopics;sa=selectTopics;topic=' . $topic . '.0;subname_enc=' . urlencode($subname) . ';' . $context['session_var'] . '=' . $context['session_id']); |
|
1776 | 1776 | } |
1777 | 1777 | |
1778 | 1778 | // Allowed to delete any message? |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | |
573 | 573 | // Don't want to mess with code... |
574 | 574 | $types = array('install', 'uninstall', 'upgrade'); |
575 | - foreach($types as $type) |
|
575 | + foreach ($types as $type) |
|
576 | 576 | { |
577 | 577 | if (isset($package[$type]['code'])) |
578 | 578 | { |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | 'value' => $txt['package_restore_permissions_cur_status'], |
698 | 698 | ), |
699 | 699 | 'data' => array( |
700 | - 'function' => function ($rowData) use ($txt) |
|
700 | + 'function' => function($rowData) use ($txt) |
|
701 | 701 | { |
702 | 702 | $formatTxt = $rowData['result'] == '' || $rowData['result'] == 'skipped' ? $txt['package_restore_permissions_pre_change'] : $txt['package_restore_permissions_post_change']; |
703 | 703 | return sprintf($formatTxt, $rowData['cur_perms'], $rowData['new_perms'], $rowData['writable_message']); |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | 'value' => $txt['package_restore_permissions_result'], |
726 | 726 | ), |
727 | 727 | 'data' => array( |
728 | - 'function' => function ($rowData) use ($txt) |
|
728 | + 'function' => function($rowData) use ($txt) |
|
729 | 729 | { |
730 | 730 | return $txt['package_restore_permissions_action_' . $rowData['result']]; |
731 | 731 | }, |
@@ -1195,7 +1195,7 @@ discard block |
||
1195 | 1195 | if ($action->exists('@lang')) |
1196 | 1196 | { |
1197 | 1197 | // Auto-select the language based on either request variable or current language. |
1198 | - if ((isset($_REQUEST['readme']) && $action->fetch('@lang') == $_REQUEST['readme']) || (isset($_REQUEST['license']) && $action->fetch('@lang') == $_REQUEST['license']) || (!isset($_REQUEST['readme']) && $action->fetch('@lang') == $language) || (!isset($_REQUEST['license']) && $action->fetch('@lang') == $language)) |
|
1198 | + if ((isset($_REQUEST['readme']) && $action->fetch('@lang') == $_REQUEST['readme']) || (isset($_REQUEST['license']) && $action->fetch('@lang') == $_REQUEST['license']) || (!isset($_REQUEST['readme']) && $action->fetch('@lang') == $language) || (!isset($_REQUEST['license']) && $action->fetch('@lang') == $language)) |
|
1199 | 1199 | { |
1200 | 1200 | // In case the user put the blocks in the wrong order. |
1201 | 1201 | if (isset($context[$type]['selected']) && $context[$type]['selected'] == 'default') |
@@ -1243,7 +1243,7 @@ discard block |
||
1243 | 1243 | 'redirect_url' => $action->exists('@url') ? $action->fetch('@url') : '', |
1244 | 1244 | 'redirect_timeout' => $action->exists('@timeout') ? (int) $action->fetch('@timeout') : '', |
1245 | 1245 | 'parse_bbc' => $action->exists('@parsebbc') && $action->fetch('@parsebbc') == 'true', |
1246 | - 'language' => (($actionType == 'readme' || $actionType == 'license') && $action->exists('@lang') && $action->fetch('@lang') == $language) ? $language : '', |
|
1246 | + 'language' => (($actionType == 'readme' || $actionType == 'license') && $action->exists('@lang') && $action->fetch('@lang') == $language) ? $language : '', |
|
1247 | 1247 | ); |
1248 | 1248 | |
1249 | 1249 | continue; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | // Build the reports button array. |
113 | 113 | $context['report_buttons'] = array( |
114 | 114 | 'generate_reports' => array('text' => 'generate_reports', 'image' => 'print.png', 'url' => $scripturl . '?action=admin;area=reports', 'active' => true), |
115 | - 'print' => array('text' => 'print', 'image' => 'print.png', 'url' => $scripturl . '?action=admin;area=reports;rt=' . $context['report_type']. ';st=print', 'custom' => 'target="_blank"'), |
|
115 | + 'print' => array('text' => 'print', 'image' => 'print.png', 'url' => $scripturl . '?action=admin;area=reports;rt=' . $context['report_type'] . ';st=print', 'custom' => 'target="_blank"'), |
|
116 | 116 | ); |
117 | 117 | |
118 | 118 | // Allow mods to add additional buttons here |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | $request = $smcFunc['db_query']('', ' |
345 | 345 | SELECT id_board, id_group |
346 | 346 | FROM {db_prefix}moderator_groups |
347 | - WHERE ' . $board_clause .' AND ' . $group_clause, |
|
347 | + WHERE ' . $board_clause . ' AND ' . $group_clause, |
|
348 | 348 | array( |
349 | 349 | ) |
350 | 350 | ); |