diff --git a/e107_plugins/forum/forum_update.php b/e107_plugins/forum/forum_update.php index 955cb563a..0c2565433 100644 --- a/e107_plugins/forum/forum_update.php +++ b/e107_plugins/forum/forum_update.php @@ -6,11 +6,11 @@ * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * Message Handler + * Forum upgrade routines * * $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_update.php,v $ - * $Revision: 1.11 $ - * $Date: 2008-12-27 04:35:41 $ + * $Revision: 1.12 $ + * $Date: 2009-02-15 17:09:39 $ * $Author: mcfly_e107 $ * */ @@ -412,21 +412,26 @@ function step6() global $f; $e107 = e107::getInstance(); $stepCaption = 'Step 6: Thread and post data'; - $threadLimit = 5000; + $threadLimit = varset($_POST['threadLimit'], 1000); $lastThread = varset($f->updateInfo['lastThread'], 0); + $maxTime = ini_get('max_execution_time'); if(!isset($_POST['move_thread_data'])) { $count = $e107->sql->db_Count('forum_t', '(*)', "WHERE thread_parent = 0 AND thread_id > {$lastThread}"); - + $limitDropdown = createThreadLimitDropdown($count); $text = " +
"; @@ -475,8 +480,9 @@ function step6() $count = $e107->sql->db_Count('forum_t', '(*)', "WHERE thread_parent = 0 AND thread_id > {$f->updateInfo['lastThread']}"); if($count) { + $limitDropdown = createThreadLimitDropdown($count); $text .= " - We still have {$count} threads remaining to convert.