1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Forum update - step10 progress-bar fix.

This commit is contained in:
Cameron 2013-04-19 03:58:49 -07:00
parent 1e9257ce5a
commit 456076fe43

View File

@ -1156,6 +1156,9 @@ function step10_ajax()//TODO
AND post_id > {$lastPost} LIMIT 50
";
// file_put_contents(e_LOG."forum_update_step10.log",$qry."\n",FILE_APPEND);
if ($sql->gen($qry))
{
while ($row = $sql->fetch(MYSQL_ASSOC))
@ -1324,8 +1327,22 @@ function step10_ajax()//TODO
}
echo round(($_SESSION['forumupdate_attachment_count'] / $_SESSION['forumupdate_attachment_total']) * 100);
}
$totalOutput = round(($_SESSION['forumupdate_attachment_count'] / $_SESSION['forumupdate_attachment_total']) * 100);
echo $totalOutput;
/*
$debugRound = "
forumupdate_attachment_count = ".$_SESSION['forumupdate_attachment_count']."
forumupdate_attachment_total = ".$_SESSION['forumupdate_attachment_total']."
calculated = ".$totalOutput."
";
file_put_contents(e_LOG."forum_update_step10.log",$debugRound,FILE_APPEND);
*/
}
else
{