diff options
author | Priyanka Bhagwat | 2014-09-15 18:18:04 +0530 |
---|---|---|
committer | Priyanka Bhagwat | 2014-09-15 18:18:04 +0530 |
commit | f48aa882df73a0597f5e6a905af8ab587f539635 (patch) | |
tree | f8680c1014d30bfb650edcf94ece29c3ab0a7a9b | |
parent | 3cf1cf388ef88a898852aed1c007f48802061884 (diff) | |
parent | cf8d9c439c1495da838d89e8ab216c9245360ce8 (diff) | |
download | scilab_textbook_companion-f48aa882df73a0597f5e6a905af8ab587f539635.tar.gz scilab_textbook_companion-f48aa882df73a0597f5e6a905af8ab587f539635.tar.bz2 scilab_textbook_companion-f48aa882df73a0597f5e6a905af8ab587f539635.zip |
Merge branch 'master' of https://github.com/FOSSEE/scilab_textbook_companion
-rwxr-xr-x | download.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/download.inc b/download.inc index 3c5102e..1f27c5b 100755 --- a/download.inc +++ b/download.inc @@ -169,6 +169,11 @@ function textbook_companion_download_book() if ($dependency_file_data) $zip->addFile($root_path . $dependency_file_data->filepath, $BK_PATH . $CH_PATH . $EX_PATH . 'DEPENDENCIES/' . $dependency_file_data->filename); } + $query = "SELECT * FROM textbook_companion_dependency_files WHERE preference_id = %d"; + $result = db_query($query, $book_id); + while($row = db_fetch_object($result)) { + $zip->addFile($root_path . $row->filepath, $BK_PATH . 'DEPENDENCIES/' . $row->filename); + } } } $zip_file_count = $zip->numFiles; |