@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | LEFT JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic) |
247 | 247 | WHERE t.id_topic IS NULL |
248 | 248 | GROUP BY m.id_topic, m.id_board', |
249 | - 'fix_processing' => function ($row) use ($smcFunc) |
|
249 | + 'fix_processing' => function($row) use ($smcFunc) |
|
250 | 250 | { |
251 | 251 | global $salvageBoardID; |
252 | 252 | |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | // Remove all topics that have zero messages in the messages table. |
333 | 333 | 'fix_collect' => array( |
334 | 334 | 'index' => 'id_topic', |
335 | - 'process' => function ($topics) use ($smcFunc) |
|
335 | + 'process' => function($topics) use ($smcFunc) |
|
336 | 336 | { |
337 | 337 | $smcFunc['db_query']('', ' |
338 | 338 | DELETE FROM {db_prefix}topics |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | AND p.id_poll IS NULL |
370 | 370 | GROUP BY o.id_poll, t.id_topic, t.id_board, t.id_member_started, m.member_name |
371 | 371 | ', |
372 | - 'fix_processing' => function ($row) use ($smcFunc, $txt) |
|
372 | + 'fix_processing' => function($row) use ($smcFunc, $txt) |
|
373 | 373 | { |
374 | 374 | global $salvageBoardID; |
375 | 375 | |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | LEFT JOIN {db_prefix}topics AS t ON (t.id_poll = p.id_poll) |
507 | 507 | WHERE p.id_poll BETWEEN {STEP_LOW} AND {STEP_HIGH} |
508 | 508 | AND t.id_poll IS NULL', |
509 | - 'fix_processing' => function ($row) use ($smcFunc, $txt) |
|
509 | + 'fix_processing' => function($row) use ($smcFunc, $txt) |
|
510 | 510 | { |
511 | 511 | global $salvageBoardID; |
512 | 512 | |
@@ -617,7 +617,7 @@ discard block |
||
617 | 617 | WHERE t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH} |
618 | 618 | GROUP BY t.id_topic, t.id_first_msg, t.id_last_msg, t.approved, mf.approved |
619 | 619 | ORDER BY t.id_topic', |
620 | - 'fix_processing' => function ($row) use ($smcFunc) |
|
620 | + 'fix_processing' => function($row) use ($smcFunc) |
|
621 | 621 | { |
622 | 622 | $row['firstmsg_approved'] = (int) $row['firstmsg_approved']; |
623 | 623 | $row['myid_first_msg'] = (int) $row['myid_first_msg']; |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | ) |
647 | 647 | ); |
648 | 648 | }, |
649 | - 'message_function' => function ($row) use ($txt, &$context) |
|
649 | + 'message_function' => function($row) use ($txt, &$context) |
|
650 | 650 | { |
651 | 651 | // A pretend error? |
652 | 652 | if ($row['id_first_msg'] == $row['myid_first_msg'] && $row['id_last_msg'] == $row['myid_last_msg'] && $row['approved'] == $row['firstmsg_approved']) |
@@ -680,7 +680,7 @@ discard block |
||
680 | 680 | WHERE t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH} |
681 | 681 | GROUP BY t.id_topic, t.num_replies, mf.approved |
682 | 682 | ORDER BY t.id_topic', |
683 | - 'fix_processing' => function ($row) |
|
683 | + 'fix_processing' => function($row) |
|
684 | 684 | { |
685 | 685 | global $smcFunc; |
686 | 686 | $row['my_num_replies'] = (int) $row['my_num_replies']; |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | ) |
700 | 700 | ); |
701 | 701 | }, |
702 | - 'message_function' => function ($row) |
|
702 | + 'message_function' => function($row) |
|
703 | 703 | { |
704 | 704 | global $txt, $context; |
705 | 705 | |
@@ -730,7 +730,7 @@ discard block |
||
730 | 730 | GROUP BY t.id_topic, t.unapproved_posts |
731 | 731 | HAVING unapproved_posts != COUNT(mu.id_msg) |
732 | 732 | ORDER BY t.id_topic', |
733 | - 'fix_processing' => function ($row) |
|
733 | + 'fix_processing' => function($row) |
|
734 | 734 | { |
735 | 735 | global $smcFunc; |
736 | 736 | $row['my_unapproved_posts'] = (int) $row['my_unapproved_posts']; |
@@ -770,7 +770,7 @@ discard block |
||
770 | 770 | WHERE b.id_board IS NULL |
771 | 771 | AND t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH} |
772 | 772 | GROUP BY t.id_board', |
773 | - 'fix_processing' => function ($row) |
|
773 | + 'fix_processing' => function($row) |
|
774 | 774 | { |
775 | 775 | global $smcFunc, $salvageCatID, $txt; |
776 | 776 | createSalvageArea(); |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | ORDER BY b.id_cat, b.id_board', |
818 | 818 | 'fix_collect' => array( |
819 | 819 | 'index' => 'id_cat', |
820 | - 'process' => function ($cats) |
|
820 | + 'process' => function($cats) |
|
821 | 821 | { |
822 | 822 | global $smcFunc, $salvageCatID; |
823 | 823 | createSalvageArea(); |
@@ -853,7 +853,7 @@ discard block |
||
853 | 853 | // Last step-make sure all non-guest posters still exist. |
854 | 854 | 'fix_collect' => array( |
855 | 855 | 'index' => 'id_msg', |
856 | - 'process' => function ($msgs) |
|
856 | + 'process' => function($msgs) |
|
857 | 857 | { |
858 | 858 | global $smcFunc; |
859 | 859 | $smcFunc['db_query']('', ' |
@@ -880,7 +880,7 @@ discard block |
||
880 | 880 | ORDER BY b.id_parent, b.id_board', |
881 | 881 | 'fix_collect' => array( |
882 | 882 | 'index' => 'id_parent', |
883 | - 'process' => function ($parents) |
|
883 | + 'process' => function($parents) |
|
884 | 884 | { |
885 | 885 | global $smcFunc, $salvageBoardID, $salvageCatID; |
886 | 886 | |
@@ -917,7 +917,7 @@ discard block |
||
917 | 917 | AND p.id_poll IS NULL', |
918 | 918 | 'fix_collect' => array( |
919 | 919 | 'index' => 'id_poll', |
920 | - 'process' => function ($polls) |
|
920 | + 'process' => function($polls) |
|
921 | 921 | { |
922 | 922 | global $smcFunc; |
923 | 923 | $smcFunc['db_query']('', ' |
@@ -949,7 +949,7 @@ discard block |
||
949 | 949 | ORDER BY cal.id_topic', |
950 | 950 | 'fix_collect' => array( |
951 | 951 | 'index' => 'id_topic', |
952 | - 'process' => function ($events) |
|
952 | + 'process' => function($events) |
|
953 | 953 | { |
954 | 954 | global $smcFunc; |
955 | 955 | $smcFunc['db_query']('', ' |
@@ -979,7 +979,7 @@ discard block |
||
979 | 979 | AND lt.id_member BETWEEN {STEP_LOW} AND {STEP_HIGH}', |
980 | 980 | 'fix_collect' => array( |
981 | 981 | 'index' => 'id_topic', |
982 | - 'process' => function ($topics) |
|
982 | + 'process' => function($topics) |
|
983 | 983 | { |
984 | 984 | global $smcFunc; |
985 | 985 | $smcFunc['db_query']('', ' |
@@ -1009,7 +1009,7 @@ discard block |
||
1009 | 1009 | GROUP BY lt.id_member', |
1010 | 1010 | 'fix_collect' => array( |
1011 | 1011 | 'index' => 'id_member', |
1012 | - 'process' => function ($members) |
|
1012 | + 'process' => function($members) |
|
1013 | 1013 | { |
1014 | 1014 | global $smcFunc; |
1015 | 1015 | $smcFunc['db_query']('', ' |
@@ -1039,7 +1039,7 @@ discard block |
||
1039 | 1039 | GROUP BY lb.id_board', |
1040 | 1040 | 'fix_collect' => array( |
1041 | 1041 | 'index' => 'id_board', |
1042 | - 'process' => function ($boards) |
|
1042 | + 'process' => function($boards) |
|
1043 | 1043 | { |
1044 | 1044 | global $smcFunc; |
1045 | 1045 | $smcFunc['db_query']('', ' |
@@ -1069,7 +1069,7 @@ discard block |
||
1069 | 1069 | GROUP BY lb.id_member', |
1070 | 1070 | 'fix_collect' => array( |
1071 | 1071 | 'index' => 'id_member', |
1072 | - 'process' => function ($members) use ($smcFunc) |
|
1072 | + 'process' => function($members) use ($smcFunc) |
|
1073 | 1073 | { |
1074 | 1074 | $smcFunc['db_query']('', ' |
1075 | 1075 | DELETE FROM {db_prefix}log_boards |
@@ -1098,7 +1098,7 @@ discard block |
||
1098 | 1098 | GROUP BY lmr.id_board', |
1099 | 1099 | 'fix_collect' => array( |
1100 | 1100 | 'index' => 'id_board', |
1101 | - 'process' => function ($boards) use ($smcFunc) |
|
1101 | + 'process' => function($boards) use ($smcFunc) |
|
1102 | 1102 | { |
1103 | 1103 | $smcFunc['db_query']('', ' |
1104 | 1104 | DELETE FROM {db_prefix}log_mark_read |
@@ -1127,7 +1127,7 @@ discard block |
||
1127 | 1127 | GROUP BY lmr.id_member', |
1128 | 1128 | 'fix_collect' => array( |
1129 | 1129 | 'index' => 'id_member', |
1130 | - 'process' => function ($members) use ($smcFunc) |
|
1130 | + 'process' => function($members) use ($smcFunc) |
|
1131 | 1131 | { |
1132 | 1132 | $smcFunc['db_query']('', ' |
1133 | 1133 | DELETE FROM {db_prefix}log_mark_read |
@@ -1156,7 +1156,7 @@ discard block |
||
1156 | 1156 | GROUP BY pmr.id_pm', |
1157 | 1157 | 'fix_collect' => array( |
1158 | 1158 | 'index' => 'id_pm', |
1159 | - 'process' => function ($pms) use ($smcFunc) |
|
1159 | + 'process' => function($pms) use ($smcFunc) |
|
1160 | 1160 | { |
1161 | 1161 | $smcFunc['db_query']('', ' |
1162 | 1162 | DELETE FROM {db_prefix}pm_recipients |
@@ -1186,7 +1186,7 @@ discard block |
||
1186 | 1186 | GROUP BY pmr.id_member', |
1187 | 1187 | 'fix_collect' => array( |
1188 | 1188 | 'index' => 'id_member', |
1189 | - 'process' => function ($members) |
|
1189 | + 'process' => function($members) |
|
1190 | 1190 | { |
1191 | 1191 | global $smcFunc; |
1192 | 1192 | $smcFunc['db_query']('', ' |
@@ -1216,7 +1216,7 @@ discard block |
||
1216 | 1216 | AND mem.id_member IS NULL', |
1217 | 1217 | 'fix_collect' => array( |
1218 | 1218 | 'index' => 'id_pm', |
1219 | - 'process' => function ($guestMessages) |
|
1219 | + 'process' => function($guestMessages) |
|
1220 | 1220 | { |
1221 | 1221 | global $smcFunc; |
1222 | 1222 | $smcFunc['db_query']('', ' |
@@ -1246,7 +1246,7 @@ discard block |
||
1246 | 1246 | GROUP BY ln.id_member', |
1247 | 1247 | 'fix_collect' => array( |
1248 | 1248 | 'index' => 'id_member', |
1249 | - 'process' => function ($members) use ($smcFunc) |
|
1249 | + 'process' => function($members) use ($smcFunc) |
|
1250 | 1250 | { |
1251 | 1251 | $smcFunc['db_query']('', ' |
1252 | 1252 | DELETE FROM {db_prefix}log_notify |
@@ -1273,7 +1273,7 @@ discard block |
||
1273 | 1273 | LEFT JOIN {db_prefix}log_search_subjects AS lss ON (lss.id_topic = t.id_topic) |
1274 | 1274 | WHERE t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH} |
1275 | 1275 | AND lss.id_topic IS NULL', |
1276 | - 'fix_full_processing' => function ($result) |
|
1276 | + 'fix_full_processing' => function($result) |
|
1277 | 1277 | { |
1278 | 1278 | global $smcFunc; |
1279 | 1279 | |
@@ -1302,7 +1302,7 @@ discard block |
||
1302 | 1302 | array('word', 'id_topic') |
1303 | 1303 | ); |
1304 | 1304 | }, |
1305 | - 'message_function' => function ($row) |
|
1305 | + 'message_function' => function($row) |
|
1306 | 1306 | { |
1307 | 1307 | global $txt, $context; |
1308 | 1308 | |
@@ -1330,7 +1330,7 @@ discard block |
||
1330 | 1330 | AND t.id_topic IS NULL', |
1331 | 1331 | 'fix_collect' => array( |
1332 | 1332 | 'index' => 'id_topic', |
1333 | - 'process' => function ($deleteTopics) |
|
1333 | + 'process' => function($deleteTopics) |
|
1334 | 1334 | { |
1335 | 1335 | global $smcFunc; |
1336 | 1336 | $smcFunc['db_query']('', ' |
@@ -1360,7 +1360,7 @@ discard block |
||
1360 | 1360 | AND mem.id_member IS NULL', |
1361 | 1361 | 'fix_collect' => array( |
1362 | 1362 | 'index' => 'id_member', |
1363 | - 'process' => function ($members) |
|
1363 | + 'process' => function($members) |
|
1364 | 1364 | { |
1365 | 1365 | global $smcFunc; |
1366 | 1366 | $smcFunc['db_query']('', ' |
@@ -1389,7 +1389,7 @@ discard block |
||
1389 | 1389 | AND p.id_poll IS NULL', |
1390 | 1390 | 'fix_collect' => array( |
1391 | 1391 | 'index' => 'id_poll', |
1392 | - 'process' => function ($polls) |
|
1392 | + 'process' => function($polls) |
|
1393 | 1393 | { |
1394 | 1394 | global $smcFunc; |
1395 | 1395 | $smcFunc['db_query']('', ' |
@@ -1418,7 +1418,7 @@ discard block |
||
1418 | 1418 | AND lrc.id_report IS NULL', |
1419 | 1419 | 'fix_collect' => array( |
1420 | 1420 | 'index' => 'id_report', |
1421 | - 'process' => function ($reports) |
|
1421 | + 'process' => function($reports) |
|
1422 | 1422 | { |
1423 | 1423 | global $smcFunc; |
1424 | 1424 | $smcFunc['db_query']('', ' |
@@ -1447,7 +1447,7 @@ discard block |
||
1447 | 1447 | AND lr.id_report IS NULL', |
1448 | 1448 | 'fix_collect' => array( |
1449 | 1449 | 'index' => 'id_report', |
1450 | - 'process' => function ($reports) |
|
1450 | + 'process' => function($reports) |
|
1451 | 1451 | { |
1452 | 1452 | global $smcFunc; |
1453 | 1453 | $smcFunc['db_query']('', ' |
@@ -1477,7 +1477,7 @@ discard block |
||
1477 | 1477 | GROUP BY lgr.id_member', |
1478 | 1478 | 'fix_collect' => array( |
1479 | 1479 | 'index' => 'id_member', |
1480 | - 'process' => function ($members) |
|
1480 | + 'process' => function($members) |
|
1481 | 1481 | { |
1482 | 1482 | global $smcFunc; |
1483 | 1483 | $smcFunc['db_query']('', ' |
@@ -1507,7 +1507,7 @@ discard block |
||
1507 | 1507 | GROUP BY lgr.id_group', |
1508 | 1508 | 'fix_collect' => array( |
1509 | 1509 | 'index' => 'id_group', |
1510 | - 'process' => function ($groups) |
|
1510 | + 'process' => function($groups) |
|
1511 | 1511 | { |
1512 | 1512 | global $smcFunc; |
1513 | 1513 | $smcFunc['db_query']('', ' |
@@ -1129,7 +1129,7 @@ |
||
1129 | 1129 | '{db_prefix}log_subscribed', |
1130 | 1130 | array( |
1131 | 1131 | 'id_subscribe' => 'int', 'id_member' => 'int', 'old_id_group' => 'int', 'start_time' => 'int', |
1132 | - 'end_time' => 'int', 'status' => 'int','pending_details' => 'string-65534' |
|
1132 | + 'end_time' => 'int', 'status' => 'int', 'pending_details' => 'string-65534' |
|
1133 | 1133 | ), |
1134 | 1134 | array( |
1135 | 1135 | $context['sub_id'], $id_member, $id_group, $starttime, |
@@ -401,8 +401,8 @@ discard block |
||
401 | 401 | <div class="bar"></div> |
402 | 402 | </div> |
403 | 403 | <div class="attach-ui"> |
404 | - <a data-dz-remove class="button cancel">', $txt['modify_cancel'] ,'</a> |
|
405 | - <a class="button upload">', $txt['upload'] ,'</a> |
|
404 | + <a data-dz-remove class="button cancel">', $txt['modify_cancel'], '</a> |
|
405 | + <a class="button upload">', $txt['upload'], '</a> |
|
406 | 406 | </div> |
407 | 407 | </div><!-- .attach-info --> |
408 | 408 | </div><!-- #au-template --> |
@@ -419,10 +419,10 @@ discard block |
||
419 | 419 | </dt> |
420 | 420 | <dd class="smalltext fallback"> |
421 | 421 | <div id="attachUpload" class="descbox"> |
422 | - <h5>', $txt['attach_drop_zone'] ,'</h5> |
|
423 | - <a class="button" id="attach-cancelAll">', $txt['attached_cancelAll'] ,'</a> |
|
424 | - <a class="button" id="attach-uploadAll">', $txt['attached_uploadAll'] ,'</a> |
|
425 | - <a class="button fileinput-button">', $txt['attach_add'] ,'</a> |
|
422 | + <h5>', $txt['attach_drop_zone'], '</h5> |
|
423 | + <a class="button" id="attach-cancelAll">', $txt['attached_cancelAll'], '</a> |
|
424 | + <a class="button" id="attach-uploadAll">', $txt['attached_uploadAll'], '</a> |
|
425 | + <a class="button fileinput-button">', $txt['attach_add'], '</a> |
|
426 | 426 | <div id="total-progress" class="progress_bar" role="progressBar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"> |
427 | 427 | <div class="bar"></div> |
428 | 428 | </div> |
@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | // Option to delete an event if user is editing one. |
533 | 533 | if ($context['make_event'] && !$context['event']['new']) |
534 | 534 | echo ' |
535 | - <input type="submit" name="deleteevent" value="', $txt['event_delete'], '" data-confirm="', $txt['event_delete_confirm'] ,'" class="button you_sure">'; |
|
535 | + <input type="submit" name="deleteevent" value="', $txt['event_delete'], '" data-confirm="', $txt['event_delete_confirm'], '" class="button you_sure">'; |
|
536 | 536 | |
537 | 537 | echo ' |
538 | 538 | </span> |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | |
575 | 575 | $newPostsHTML .= ' |
576 | 576 | <br class="clear"> |
577 | - <div id="msg_%PostID%_ignored_prompt" class="smalltext" style="display: none;">' . $txt['ignoring_user'] . '<a href="#" id="msg_%PostID%_ignored_link" style="%IgnoredStyle%">' . $txt['show_ignore_user_post'] . '</a></div> |
|
577 | + <div id="msg_%PostID%_ignored_prompt" class="smalltext" style="display: none;">' . $txt['ignoring_user'] . '<a href="#" id="msg_%PostID%_ignored_link" style="%IgnoredStyle%">' . $txt['show_ignore_user_post'] . '</a></div> |
|
578 | 578 | <div class="list_posts smalltext" id="msg_%PostID%_body">%PostBody%</div> |
579 | 579 | </div>'; |
580 | 580 | |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | });'; |
661 | 661 | |
662 | 662 | echo ' |
663 | - var oEditorID = "', $context['post_box_name'] ,'"; |
|
663 | + var oEditorID = "', $context['post_box_name'], '"; |
|
664 | 664 | var oEditorObject = oEditorHandle_', $context['post_box_name'], '; |
665 | 665 | </script>'; |
666 | 666 | |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | if ($context['can_quote']) |
693 | 693 | echo ' |
694 | 694 | <ul class="quickbuttons" id="msg_', $post['id'], '_quote"> |
695 | - <li style="display:none;" id="quoteSelected_', $post['id'], '" data-msgid="', $post['id'], '"><a href="javascript:void(0)"><span class="generic_icons quote_selected"></span>', $txt['quote_selected_action'] ,'</a></li> |
|
695 | + <li style="display:none;" id="quoteSelected_', $post['id'], '" data-msgid="', $post['id'], '"><a href="javascript:void(0)"><span class="generic_icons quote_selected"></span>', $txt['quote_selected_action'], '</a></li> |
|
696 | 696 | <li id="post_modify"><a href="#postmodify" onclick="return insertQuoteFast(', $post['id'], ');"><span class="generic_icons quote"></span>', $txt['quote'], '</a></li> |
697 | 697 | </ul>'; |
698 | 698 | |
@@ -777,7 +777,7 @@ discard block |
||
777 | 777 | <head> |
778 | 778 | <meta charset="', $context['character_set'], '"> |
779 | 779 | <title>', $txt['spell_check'], '</title> |
780 | - <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'] ,'"> |
|
780 | + <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'], '"> |
|
781 | 781 | <style> |
782 | 782 | body, td { |
783 | 783 | font-size: small; |
@@ -807,8 +807,8 @@ discard block |
||
807 | 807 | var spell_formname = window.opener.spell_formname; |
808 | 808 | var spell_fieldname = window.opener.spell_fieldname; |
809 | 809 | </script> |
810 | - <script src="', $settings['default_theme_url'], '/scripts/spellcheck.js', $modSettings['browser_cache'] ,'"></script> |
|
811 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
810 | + <script src="', $settings['default_theme_url'], '/scripts/spellcheck.js', $modSettings['browser_cache'], '"></script> |
|
811 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
812 | 812 | <script> |
813 | 813 | ', $context['spell_js'], ' |
814 | 814 | </script> |
@@ -852,7 +852,7 @@ discard block |
||
852 | 852 | <head> |
853 | 853 | <meta charset="', $context['character_set'], '"> |
854 | 854 | <title>', $txt['retrieving_quote'], '</title> |
855 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
855 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
856 | 856 | </head> |
857 | 857 | <body> |
858 | 858 | ', $txt['retrieving_quote'], ' |
@@ -1774,7 +1774,7 @@ discard block |
||
1774 | 1774 | call_integration_hook('integrate_pre_load_theme', array(&$id_theme)); |
1775 | 1775 | |
1776 | 1776 | // We already load the basic stuff? |
1777 | - if (empty($settings['theme_id']) || $settings['theme_id'] != $id_theme ) |
|
1777 | + if (empty($settings['theme_id']) || $settings['theme_id'] != $id_theme) |
|
1778 | 1778 | { |
1779 | 1779 | $member = empty($user_info['id']) ? -1 : $user_info['id']; |
1780 | 1780 | |
@@ -1799,7 +1799,7 @@ discard block |
||
1799 | 1799 | SELECT variable, value, id_member, id_theme |
1800 | 1800 | FROM {db_prefix}themes |
1801 | 1801 | WHERE id_member' . (empty($themeData[0]) ? ' IN (-1, 0, {int:id_member})' : ' = {int:id_member}') . ' |
1802 | - AND id_theme' . ($id_theme == 1 ? ' = {int:id_theme}' : ' IN ({int:id_theme}, 1)') .' |
|
1802 | + AND id_theme' . ($id_theme == 1 ? ' = {int:id_theme}' : ' IN ({int:id_theme}, 1)') . ' |
|
1803 | 1803 | ORDER BY id_theme asc', |
1804 | 1804 | array( |
1805 | 1805 | 'id_theme' => $id_theme, |
@@ -2029,7 +2029,7 @@ discard block |
||
2029 | 2029 | if (!isset($context['javascript_vars'])) |
2030 | 2030 | $context['javascript_vars'] = array(); |
2031 | 2031 | |
2032 | - $context['login_url'] = $scripturl . '?action=login2'; |
|
2032 | + $context['login_url'] = $scripturl . '?action=login2'; |
|
2033 | 2033 | $context['menu_separator'] = !empty($settings['use_image_buttons']) ? ' ' : ' | '; |
2034 | 2034 | $context['session_var'] = $_SESSION['session_var']; |
2035 | 2035 | $context['session_id'] = $_SESSION['session_value']; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | // Set a list of common functions. |
79 | 79 | $ent_list = '&(?:#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . '|quot|amp|lt|gt|nbsp);'; |
80 | 80 | $ent_check = empty($modSettings['disableEntityCheck']) ? function($string) |
81 | - { |
|
81 | + { |
|
82 | 82 | $string = preg_replace_callback('~(&#(\d{1,7}|x[0-9a-fA-F]{1,6});)~', 'entity_fix__callback', $string); |
83 | 83 | return $string; |
84 | 84 | } : function($string) |
@@ -2131,7 +2131,6 @@ discard block |
||
2131 | 2131 | loadLanguage('index+Modifications'); |
2132 | 2132 | $context['template_layers'] = array(); |
2133 | 2133 | } |
2134 | - |
|
2135 | 2134 | else |
2136 | 2135 | { |
2137 | 2136 | // Custom templates to load, or just default? |
@@ -2510,14 +2509,12 @@ discard block |
||
2510 | 2509 | $fileUrl = $settings['default_theme_url'] . '/css/' . $fileName . ($has_seed ? '' : $params['seed']); |
2511 | 2510 | $filePath = $settings['default_theme_dir'] . '/css/' . $fileName . ($has_seed ? '' : $params['seed']); |
2512 | 2511 | } |
2513 | - |
|
2514 | 2512 | else |
2515 | 2513 | { |
2516 | 2514 | $fileUrl = false; |
2517 | 2515 | $filePath = false; |
2518 | 2516 | } |
2519 | 2517 | } |
2520 | - |
|
2521 | 2518 | else |
2522 | 2519 | { |
2523 | 2520 | $fileUrl = $settings[$themeRef . '_url'] . '/css/' . $fileName . ($has_seed ? '' : $params['seed']); |
@@ -2618,14 +2615,12 @@ discard block |
||
2618 | 2615 | $fileUrl = $settings['default_theme_url'] . '/scripts/' . $fileName . ($has_seed ? '' : $params['seed']); |
2619 | 2616 | $filePath = $settings['default_theme_dir'] . '/scripts/' . $fileName . ($has_seed ? '' : $params['seed']); |
2620 | 2617 | } |
2621 | - |
|
2622 | 2618 | else |
2623 | 2619 | { |
2624 | 2620 | $fileUrl = false; |
2625 | 2621 | $filePath = false; |
2626 | 2622 | } |
2627 | 2623 | } |
2628 | - |
|
2629 | 2624 | else |
2630 | 2625 | { |
2631 | 2626 | $fileUrl = $settings[$themeRef . '_url'] . '/scripts/' . $fileName . ($has_seed ? '' : $params['seed']); |
@@ -1744,9 +1744,9 @@ |
||
1744 | 1744 | $context['theme_files'] = get_file_listing($currentTheme['theme_dir'], ''); |
1745 | 1745 | |
1746 | 1746 | // Do not list minified_ files |
1747 | - foreach($context['theme_files'] as $key=>$file) |
|
1747 | + foreach ($context['theme_files'] as $key=>$file) |
|
1748 | 1748 | { |
1749 | - if(strpos($file['filename'], 'minified_') !== FALSE) |
|
1749 | + if (strpos($file['filename'], 'minified_') !== FALSE) |
|
1750 | 1750 | unset($context['theme_files'][$key]); |
1751 | 1751 | } |
1752 | 1752 |
@@ -1364,7 +1364,6 @@ |
||
1364 | 1364 | // return all the info. |
1365 | 1365 | return $context['to_install']; |
1366 | 1366 | } |
1367 | - |
|
1368 | 1367 | else |
1369 | 1368 | fatal_lang_error('theme_install_error_title', false); |
1370 | 1369 | } |
@@ -1746,7 +1746,7 @@ |
||
1746 | 1746 | // Do not list minified_ files |
1747 | 1747 | foreach($context['theme_files'] as $key=>$file) |
1748 | 1748 | { |
1749 | - if(strpos($file['filename'], 'minified_') !== FALSE) |
|
1749 | + if(strpos($file['filename'], 'minified_') !== false) |
|
1750 | 1750 | unset($context['theme_files'][$key]); |
1751 | 1751 | } |
1752 | 1752 |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | if (!empty($boardUpdateParameters['deny_groups'])) |
661 | 661 | { |
662 | 662 | $insert = array(); |
663 | - foreach($boardOptions['deny_groups'] as $value) |
|
663 | + foreach ($boardOptions['deny_groups'] as $value) |
|
664 | 664 | $insert[] = array($value, $board_id, 1); |
665 | 665 | |
666 | 666 | $smcFunc['db_query']('', ' |
@@ -674,14 +674,14 @@ discard block |
||
674 | 674 | '{db_prefix}board_permissions_view', |
675 | 675 | array('id_group' => 'int', 'id_board' => 'int', 'deny' => 'int'), |
676 | 676 | $insert, |
677 | - array('id_group','id_board','deny') |
|
677 | + array('id_group', 'id_board', 'deny') |
|
678 | 678 | ); |
679 | 679 | } |
680 | 680 | |
681 | 681 | if (!empty($boardUpdateParameters['member_groups'])) |
682 | 682 | { |
683 | 683 | $insert = array(); |
684 | - foreach($boardOptions['access_groups'] as $value) |
|
684 | + foreach ($boardOptions['access_groups'] as $value) |
|
685 | 685 | $insert[] = array($value, $board_id, 0); |
686 | 686 | $smcFunc['db_query']('', ' |
687 | 687 | DELETE FROM {db_prefix}board_permissions_view |
@@ -694,7 +694,7 @@ discard block |
||
694 | 694 | '{db_prefix}board_permissions_view', |
695 | 695 | array('id_group' => 'int', 'id_board' => 'int', 'deny' => 'int'), |
696 | 696 | $insert, |
697 | - array('id_group','id_board','deny') |
|
697 | + array('id_group', 'id_board', 'deny') |
|
698 | 698 | ); |
699 | 699 | } |
700 | 700 | |
@@ -901,14 +901,14 @@ discard block |
||
901 | 901 | |
902 | 902 | $insert = array(); |
903 | 903 | |
904 | - foreach(explode(',', $default_memgrps) as $value) |
|
904 | + foreach (explode(',', $default_memgrps) as $value) |
|
905 | 905 | $insert[] = array($value, $board_id, 0); |
906 | 906 | |
907 | 907 | $smcFunc['db_insert']('', |
908 | 908 | '{db_prefix}board_permissions_view', |
909 | 909 | array('id_group' => 'int', 'id_board' => 'int', 'deny' => 'int'), |
910 | 910 | $insert, |
911 | - array('id_group','id_board','deny'), |
|
911 | + array('id_group', 'id_board', 'deny'), |
|
912 | 912 | 1 |
913 | 913 | ); |
914 | 914 |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | ' . (empty($sort_methods_table[$context['sort_by']]) ? '' : $sort_methods_table[$context['sort_by']]) . ' |
325 | 325 | WHERE t.id_board = {int:current_board} ' |
326 | 326 | . (!$modSettings['postmod_active'] || $context['can_approve_posts'] ? '' : ' |
327 | - AND (t.approved = {int:is_approved}' . ($user_info['is_guest'] ? '' : ' OR t.id_member_started = {int:current_member}') . ')') .' |
|
327 | + AND (t.approved = {int:is_approved}' . ($user_info['is_guest'] ? '' : ' OR t.id_member_started = {int:current_member}') . ')') . ' |
|
328 | 328 | ORDER BY is_sticky' . ($fake_ascending ? '' : ' DESC') . ', ' . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') . ' |
329 | 329 | LIMIT {int:maxindex} |
330 | 330 | OFFSET {int:start} '; |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | SELECT |
334 | 334 | t.id_topic, t.num_replies, t.locked, t.num_views, t.is_sticky, t.id_poll, t.id_previous_board, |
335 | 335 | ' . ($user_info['is_guest'] ? '0' : 'COALESCE(lt.id_msg, COALESCE(lmr.id_msg, -1)) + 1') . ' AS new_from, |
336 | - ' . ( $enableParticipation ? ' COALESCE(( SELECT 1 FROM {db_prefix}messages AS parti WHERE t.id_topic = parti.id_topic and parti.id_member = {int:current_member} LIMIT 1) , 0) as is_posted_in, |
|
336 | + ' . ($enableParticipation ? ' COALESCE(( SELECT 1 FROM {db_prefix}messages AS parti WHERE t.id_topic = parti.id_topic and parti.id_member = {int:current_member} LIMIT 1) , 0) as is_posted_in, |
|
337 | 337 | ' : '') . ' |
338 | 338 | t.id_last_msg, t.approved, t.unapproved_posts, ml.poster_time AS last_poster_time, t.id_redirect_topic, |
339 | 339 | ml.id_msg_modified, ml.subject AS last_subject, ml.icon AS last_icon, |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = {int:current_board} AND lmr.id_member = {int:current_member})') . ' |
358 | 358 | ' . (!empty($message_index_tables) ? implode("\n\t\t\t\t", $message_index_tables) : '') . ' |
359 | 359 | ' . (!empty($message_index_wheres) ? ' WHERE ' . implode("\n\t\t\t\tAND ", $message_index_wheres) : '') . ' |
360 | - ORDER BY is_sticky' . ($fake_ascending ? '' : ' DESC') . ', ' . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') , |
|
360 | + ORDER BY is_sticky' . ($fake_ascending ? '' : ' DESC') . ', ' . $_REQUEST['sort'] . ($ascending ? '' : ' DESC'), |
|
361 | 361 | $message_index_parameters |
362 | 362 | ); |
363 | 363 |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | |
231 | 231 | foreach ($message['custom_fields']['above_member'] as $custom) |
232 | 232 | echo ' |
233 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
233 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
234 | 234 | |
235 | 235 | echo ' |
236 | 236 | </ul> |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | if (!empty($message['custom_fields']['below_avatar'])) |
280 | 280 | foreach ($message['custom_fields']['below_avatar'] as $custom) |
281 | 281 | echo ' |
282 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
282 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
283 | 283 | |
284 | 284 | if (!$message['member']['is_guest']) |
285 | 285 | echo ' |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | |
322 | 322 | foreach ($message['custom_fields']['icons'] as $custom) |
323 | 323 | echo ' |
324 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
324 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
325 | 325 | |
326 | 326 | echo ' |
327 | 327 | </ol> |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | if (!empty($message['custom_fields']['standard'])) |
386 | 386 | foreach ($message['custom_fields']['standard'] as $custom) |
387 | 387 | echo ' |
388 | - <li class="custom ', $custom['col_name'] ,'">', $custom['title'], ': ', $custom['value'], '</li>'; |
|
388 | + <li class="custom ', $custom['col_name'], '">', $custom['title'], ': ', $custom['value'], '</li>'; |
|
389 | 389 | |
390 | 390 | // Are we showing the warning status? |
391 | 391 | if ($message['member']['can_see_warning']) |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | if (!empty($message['custom_fields']['bottom_poster'])) |
397 | 397 | foreach ($message['custom_fields']['bottom_poster'] as $custom) |
398 | 398 | echo ' |
399 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
399 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
400 | 400 | } |
401 | 401 | |
402 | 402 | // Done with the information about the poster... on to the post itself. |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | |
498 | 498 | foreach ($message['custom_fields']['above_signature'] as $custom) |
499 | 499 | echo ' |
500 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
500 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
501 | 501 | |
502 | 502 | echo ' |
503 | 503 | </ul> |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | |
521 | 521 | foreach ($message['custom_fields']['below_signature'] as $custom) |
522 | 522 | echo ' |
523 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
523 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
524 | 524 | |
525 | 525 | echo ' |
526 | 526 | </ul> |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | while ($message = $context['get_pmessage']('subject')) |
657 | 657 | { |
658 | 658 | echo ' |
659 | - <tr class="windowbg', $message['is_unread'] ? ' unread_pm' : '','"> |
|
659 | + <tr class="windowbg', $message['is_unread'] ? ' unread_pm' : '', '"> |
|
660 | 660 | <td class="table_icon pm_icon"> |
661 | 661 | <script> |
662 | 662 | currentLabels[', $message['id'], '] = {'; |
@@ -680,7 +680,7 @@ discard block |
||
680 | 680 | <td class="pm_time">', $message['time'], '</td> |
681 | 681 | <td class="pm_subject"> |
682 | 682 | ', ($context['display_mode'] != 0 && $context['current_pm'] == $message['id'] ? '<img src="' . $settings['images_url'] . '/selected.png" alt="*">' : ''), '<a href="', ($context['display_mode'] == 0 || $context['current_pm'] == $message['id'] ? '' : ($scripturl . '?action=pm;pmid=' . $message['id'] . ';kstart;f=' . $context['folder'] . ';start=' . $context['start'] . ';sort=' . $context['sort_by'] . ($context['sort_direction'] == 'up' ? ';' : ';desc') . ($context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : ''))), '#msg', $message['id'], '">', $message['subject'], $message['is_unread'] ? ' <span class="new_posts">' . $txt['new'] . '</span>' : '', '</a> |
683 | - <span class="pm_inline_time"><span class="generic_icons ', ($context['from_or_to']=='to' && count($message['recipients']['to'])>1) ? 'people' : 'members', '"></span> ', ($context['from_or_to'] == 'from' ? $message['member']['link'] : (empty($message['recipients']['to']) ? '' : implode(', ', $message['recipients']['to']))), ' <span class="generic_icons time_online"></span> ', $message['time'], '</span> |
|
683 | + <span class="pm_inline_time"><span class="generic_icons ', ($context['from_or_to'] == 'to' && count($message['recipients']['to']) > 1) ? 'people' : 'members', '"></span> ', ($context['from_or_to'] == 'from' ? $message['member']['link'] : (empty($message['recipients']['to']) ? '' : implode(', ', $message['recipients']['to']))), ' <span class="generic_icons time_online"></span> ', $message['time'], '</span> |
|
684 | 684 | </td> |
685 | 685 | <td class="pm_from_to"> |
686 | 686 | ', ($context['from_or_to'] == 'from' ? $message['member']['link'] : (empty($message['recipients']['to']) ? '' : implode(', ', $message['recipients']['to']))), ' |
@@ -957,13 +957,13 @@ discard block |
||
957 | 957 | // You can only reply if they are not a guest... |
958 | 958 | if (!$message['member']['is_guest']) |
959 | 959 | echo ' |
960 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'sent' ? '' : $message['member']['id'], '">', $quote_button , '</a>', $context['menu_separator'], ' |
|
961 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button , '</a> ', $context['menu_separator']; |
|
960 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'sent' ? '' : $message['member']['id'], '">', $quote_button, '</a>', $context['menu_separator'], ' |
|
961 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button, '</a> ', $context['menu_separator']; |
|
962 | 962 | |
963 | 963 | // This is for "forwarding" - even if the member is gone. |
964 | 964 | else |
965 | 965 | echo ' |
966 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote">', $quote_button , '</a>', $context['menu_separator']; |
|
966 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote">', $quote_button, '</a>', $context['menu_separator']; |
|
967 | 967 | } |
968 | 968 | |
969 | 969 | echo ' |
@@ -1063,7 +1063,7 @@ discard block |
||
1063 | 1063 | <div class="', empty($context['error_type']) || $context['error_type'] != 'serious' ? 'noticebox' : 'errorbox', '', empty($context['post_error']['messages']) ? ' hidden' : '', '" id="errors"> |
1064 | 1064 | <dl> |
1065 | 1065 | <dt> |
1066 | - <strong id="error_serious">', $txt['error_while_submitting'] , '</strong> |
|
1066 | + <strong id="error_serious">', $txt['error_while_submitting'], '</strong> |
|
1067 | 1067 | </dt> |
1068 | 1068 | <dd class="error" id="error_list"> |
1069 | 1069 | ', empty($context['post_error']['messages']) ? '' : implode('<br>', $context['post_error']['messages']), ' |
@@ -1119,7 +1119,7 @@ discard block |
||
1119 | 1119 | <span', (isset($context['post_error']['no_subject']) ? ' class="error"' : ''), ' id="caption_subject">', $txt['subject'], ':</span> |
1120 | 1120 | </dt> |
1121 | 1121 | <dd id="pm_subject"> |
1122 | - <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"',isset($context['post_error']['no_subject']) ? ' class="error"' : '', '> |
|
1122 | + <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"', isset($context['post_error']['no_subject']) ? ' class="error"' : '', '> |
|
1123 | 1123 | </dd> |
1124 | 1124 | </dl>'; |
1125 | 1125 | |
@@ -1472,7 +1472,7 @@ discard block |
||
1472 | 1472 | echo ' |
1473 | 1473 | <div class="block righttext"> |
1474 | 1474 | <input type="submit" name="save" value="', $txt['save'], '" class="button"> |
1475 | - <input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" data-confirm="', $txt['pm_labels_delete'] ,'" class="button you_sure"> |
|
1475 | + <input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" data-confirm="', $txt['pm_labels_delete'], '" class="button you_sure"> |
|
1476 | 1476 | </div>'; |
1477 | 1477 | |
1478 | 1478 | echo ' |
@@ -1636,7 +1636,7 @@ discard block |
||
1636 | 1636 | if (!empty($context['rules'])) |
1637 | 1637 | echo ' |
1638 | 1638 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> |
1639 | - <input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" data-confirm="', $txt['pm_js_delete_rule_confirm'] ,'" class="button smalltext you_sure">'; |
|
1639 | + <input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" data-confirm="', $txt['pm_js_delete_rule_confirm'], '" class="button smalltext you_sure">'; |
|
1640 | 1640 | |
1641 | 1641 | echo ' |
1642 | 1642 | </div> |
@@ -1879,9 +1879,9 @@ discard block |
||
1879 | 1879 | |
1880 | 1880 | echo ' |
1881 | 1881 | <select name="acttype[', $k, ']" id="acttype', $k, '" onchange="updateActionDef(', $k, '); rebuildRuleDesc();"> |
1882 | - <option value="">', $txt['pm_rule_sel_action'] , ':</option> |
|
1883 | - <option value="lab"', $action['t'] == 'lab' ? ' selected' : '', '>', $txt['pm_rule_label'] , '</option> |
|
1884 | - <option value="del"', $action['t'] == 'del' ? ' selected' : '', '>', $txt['pm_rule_delete'] , '</option> |
|
1882 | + <option value="">', $txt['pm_rule_sel_action'], ':</option> |
|
1883 | + <option value="lab"', $action['t'] == 'lab' ? ' selected' : '', '>', $txt['pm_rule_label'], '</option> |
|
1884 | + <option value="del"', $action['t'] == 'del' ? ' selected' : '', '>', $txt['pm_rule_delete'], '</option> |
|
1885 | 1885 | </select> |
1886 | 1886 | <span id="labdiv', $k, '"> |
1887 | 1887 | <select name="labdef[', $k, ']" id="labdef', $k, '" onchange="rebuildRuleDesc();"> |
@@ -1993,7 +1993,7 @@ discard block |
||
1993 | 1993 | </div> |
1994 | 1994 | <ul class="quickbuttons"> |
1995 | 1995 | <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;id_draft=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '"><span class="generic_icons modifybutton"></span>', $txt['draft_edit'], '</a></li> |
1996 | - <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;delete=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['draft_remove'] ,'?" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['draft_delete'], '</a></li> |
|
1996 | + <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;delete=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['draft_remove'], '?" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['draft_delete'], '</a></li> |
|
1997 | 1997 | </ul> |
1998 | 1998 | </div><!-- .windowbg -->'; |
1999 | 1999 | } |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | 'editlang' => array( |
593 | 593 | 'header' => array( |
594 | 594 | 'value' => '', |
595 | - ),'data' => array( |
|
595 | + ), 'data' => array( |
|
596 | 596 | 'function' => function($rowData) use ($scripturl, $txt) |
597 | 597 | { |
598 | 598 | return sprintf('<a href="%1$s?action=admin;area=languages;sa=editlang;lid=%2$s" class="button">%3$s</a>', $scripturl, $rowData['id'], $txt['edit']); |
@@ -1269,7 +1269,7 @@ discard block |
||
1269 | 1269 | // Now create the string! |
1270 | 1270 | $final_saves[$entryKey] = array( |
1271 | 1271 | 'find' => $entryValue['full'], |
1272 | - 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n" . '$' . $entryValue['type'] . '[\'' . $entryKey . '\'] = array(' . implode(', ', $items) . ');' . $entryValue['cruft'], |
|
1272 | + 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n" . '$' . $entryValue['type'] . '[\'' . $entryKey . '\'] = array(' . implode(', ', $items) . ');' . $entryValue['cruft'], |
|
1273 | 1273 | ); |
1274 | 1274 | } |
1275 | 1275 | } |
@@ -1291,7 +1291,7 @@ discard block |
||
1291 | 1291 | // And save it |
1292 | 1292 | $final_saves[$entryKey] = array( |
1293 | 1293 | 'find' => $entryValue['full'], |
1294 | - 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n" . '$' . $entryValue['type'] . '[\'' . $entryValue['key'] . '\'][' . $subKey . '] = ' . $save_strings[$entryValue['key']][$entryValue['subkey']] . ';' . $entryValue['cruft'], |
|
1294 | + 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n" . '$' . $entryValue['type'] . '[\'' . $entryValue['key'] . '\'][' . $subKey . '] = ' . $save_strings[$entryValue['key']][$entryValue['subkey']] . ';' . $entryValue['cruft'], |
|
1295 | 1295 | ); |
1296 | 1296 | } |
1297 | 1297 | |
@@ -1301,7 +1301,7 @@ discard block |
||
1301 | 1301 | $entryValue['entry'] = '\'\''; |
1302 | 1302 | $final_saves[$entryKey] = array( |
1303 | 1303 | 'find' => $entryValue['full'], |
1304 | - 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n", |
|
1304 | + 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n", |
|
1305 | 1305 | ); |
1306 | 1306 | } |
1307 | 1307 | |
@@ -1329,7 +1329,7 @@ discard block |
||
1329 | 1329 | // And we know what to save now! |
1330 | 1330 | $final_saves[$entryKey] = array( |
1331 | 1331 | 'find' => $entryValue['full'], |
1332 | - 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n" . '$' . $entryValue['type'] . '[\'' . $entryValue['key'] . '\'] = ' . $save_strings[$entryValue['key']] . ';' . $entryValue['cruft'], |
|
1332 | + 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n" . '$' . $entryValue['type'] . '[\'' . $entryValue['key'] . '\'] = ' . $save_strings[$entryValue['key']] . ';' . $entryValue['cruft'], |
|
1333 | 1333 | ); |
1334 | 1334 | } |
1335 | 1335 | // Remove this entry only if it is allowed |
@@ -1338,7 +1338,7 @@ discard block |
||
1338 | 1338 | $entryValue['entry'] = '\'\''; |
1339 | 1339 | $final_saves[$entryKey] = array( |
1340 | 1340 | 'find' => $entryValue['full'], |
1341 | - 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n", |
|
1341 | + 'replace' => '// ' . implode("\n// ", explode("\n", rtrim($entryValue['full'], "\n"))) . "\n", |
|
1342 | 1342 | ); |
1343 | 1343 | } |
1344 | 1344 | |
@@ -1369,8 +1369,8 @@ discard block |
||
1369 | 1369 | continue; |
1370 | 1370 | |
1371 | 1371 | $final_saves[$string_key] = array( |
1372 | - 'find' => "\s*\?".'>$', |
|
1373 | - 'replace' => "\n\$" . $type . '[\'' . $string_key . '\'] = ' . $string_val['string'] . ';' . "\n\n?".'>', |
|
1372 | + 'find' => "\s*\?" . '>$', |
|
1373 | + 'replace' => "\n\$" . $type . '[\'' . $string_key . '\'] = ' . $string_val['string'] . ';' . "\n\n?" . '>', |
|
1374 | 1374 | 'is_regex' => true, |
1375 | 1375 | ); |
1376 | 1376 | } |
@@ -1387,8 +1387,8 @@ discard block |
||
1387 | 1387 | $subKey = ctype_digit(trim($substring_key, '\'')) ? trim($substring_key, '\'') : '\'' . $substring_key . '\''; |
1388 | 1388 | |
1389 | 1389 | $final_saves[$string_key . '[' . $substring_key . ']'] = array( |
1390 | - 'find' => "\s*\?".'>$', |
|
1391 | - 'replace' => "\n\$" . $type . '[\'' . $string_key . '\'][' . $subKey . '] = ' . $substring_val['string'] . ';' . "\n\n?".'>', |
|
1390 | + 'find' => "\s*\?" . '>$', |
|
1391 | + 'replace' => "\n\$" . $type . '[\'' . $string_key . '\'][' . $subKey . '] = ' . $substring_val['string'] . ';' . "\n\n?" . '>', |
|
1392 | 1392 | 'is_regex' => true, |
1393 | 1393 | ); |
1394 | 1394 | } |