| @@ 134-147 (lines=14) @@ | ||
| 131 | $context['start'] = $_GET['start']; |
|
| 132 | ||
| 133 | // Update the error count |
|
| 134 | if (!isset($filter)) |
|
| 135 | $context['num_errors'] = $num_errors; |
|
| 136 | else |
|
| 137 | { |
|
| 138 | // We want all errors, not just the number of filtered messages... |
|
| 139 | $query = $smcFunc['db_query']('', ' |
|
| 140 | SELECT COUNT(id_error) |
|
| 141 | FROM {db_prefix}log_errors', |
|
| 142 | array() |
|
| 143 | ); |
|
| 144 | ||
| 145 | list($context['num_errors']) = $smcFunc['db_fetch_row']($query); |
|
| 146 | $smcFunc['db_free_result']($query); |
|
| 147 | } |
|
| 148 | ||
| 149 | // Find and sort out the errors. |
|
| 150 | $request = $smcFunc['db_query']('', ' |
|
| @@ 1599-1612 (lines=14) @@ | ||
| 1596 | } |
|
| 1597 | ||
| 1598 | // How many topics are we converting? |
|
| 1599 | if (!isset($_REQUEST['totaltopics'])) |
|
| 1600 | { |
|
| 1601 | $request = $smcFunc['db_query']('', ' |
|
| 1602 | SELECT COUNT(*) |
|
| 1603 | FROM {db_prefix}topics AS t |
|
| 1604 | INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg)' . |
|
| 1605 | $conditions, |
|
| 1606 | $params |
|
| 1607 | ); |
|
| 1608 | list ($total_topics) = $smcFunc['db_fetch_row']($request); |
|
| 1609 | $smcFunc['db_free_result']($request); |
|
| 1610 | } |
|
| 1611 | else |
|
| 1612 | $total_topics = (int) $_REQUEST['totaltopics']; |
|
| 1613 | ||
| 1614 | // Seems like we need this here. |
|
| 1615 | $context['continue_get_data'] = '?action=admin;area=maintain;sa=topics;activity=massmove;id_board_from=' . $id_board_from . ';id_board_to=' . $id_board_to . ';totaltopics=' . $total_topics . ';max_days=' . $max_days; |
|