summaryrefslogtreecommitdiff
path: root/latex.inc
diff options
context:
space:
mode:
Diffstat (limited to 'latex.inc')
-rwxr-xr-xlatex.inc26
1 files changed, 14 insertions, 12 deletions
diff --git a/latex.inc b/latex.inc
index 8f25e7f..a0ca31d 100755
--- a/latex.inc
+++ b/latex.inc
@@ -113,18 +113,20 @@ function _latex_generate_files($lab_id, $full_lab = FALSE)
$dependency_q = db_query("SELECT * FROM {lab_migration_dependency_files} WHERE id = %d LIMIT 1", $dependency_files_data->dependency_id);
if ($dependency_data = db_fetch_object($dependency_q))
{
- $latex_filedata .= $experiment_data->number . $sep;
- $latex_filedata .= $experiment_data->title . $sep;
- $latex_filedata .= $solution_data->code_number . $sep;
- $latex_filedata .= $solution_data->caption . $sep;
- $latex_filedata .= $dependency_data->filename . $sep;
- $latex_filedata .= $dependency_data->filepath . $sep;
- $latex_filedata .= 'D' . $sep;
- $latex_filedata .= $dependency_data->caption . $sep;
- $latex_filedata .= $dependency_data->id;
- $latex_filedata .= $eol;
-
- $depedency_list[$dependency_data->id] = "D";
+ if(substr($dependency_data->filename, -3) != "wav") {
+ $latex_filedata .= $experiment_data->number . $sep;
+ $latex_filedata .= $experiment_data->title . $sep;
+ $latex_filedata .= $solution_data->code_number . $sep;
+ $latex_filedata .= $solution_data->caption . $sep;
+ $latex_filedata .= $dependency_data->filename . $sep;
+ $latex_filedata .= $dependency_data->filepath . $sep;
+ $latex_filedata .= 'D' . $sep;
+ $latex_filedata .= $dependency_data->caption . $sep;
+ $latex_filedata .= $dependency_data->id;
+ $latex_filedata .= $eol;
+
+ $depedency_list[$dependency_data->id] = "D";
+ }
}
}
}