Skip to content

Commit

Permalink
Fixed chunk archive download problem.
Browse files Browse the repository at this point in the history
Code was trying to write non-existent variables to the chunks directory.
Replaced with correct variables.
  • Loading branch information
scottkleinman committed Feb 11, 2013
1 parent f2fa8d5 commit 4f19bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ function hash_sort( &$hash, $sort ) {
mkdir('sessions/' . session_id() . '/chunks');
}
$outdirectory = 'sessions/' . session_id() . '/chunks/'; // Needs a directory path
$chunkfile = $outdirectory . $out . ".txt";
file_put_contents($chunkfile, $out);
$chunkfile = $outdirectory . $outfile . ".txt";
file_put_contents($chunkfile, $str);



Expand Down

0 comments on commit 4f19bac

Please sign in to comment.