Fix the link to the materials

This commit is contained in:
dave 2010-02-10 05:36:16 +00:00
parent 33a9ee5401
commit 1aa759047a

View File

@ -212,8 +212,7 @@ case 'additional_materials':
$fair = mysql_fetch_assoc($q);
$pdf = fair_additional_materials($fair, $a, $config['FAIRYEAR']);
foreach($pdf['header'] as $h) header($h);
// echo base64_decode($pdf['data64']);
base64_decode($pdf['data64']);
echo $pdf['data'];
exit;
}
@ -612,7 +611,7 @@ function print_award(&$r, $fairs_id, $editor=false, $editor_data=array())
$d = 'disabled="disabled"';
$a = '';
if($has_winners == true) {
echo "<a href=\"{$_SERVER['PHP_SELF']}?action=additional_materials&award_awards_id={$r['id']}&fairs_id={$fairs_id}\" target=\"_blank\">";
echo "<a href=\"{$_SERVER['PHP_SELF']}?action=additional_materials&award_awards_id={$r['id']}&fairs_id={$fairs_id}\" >";
$d = '';
$a = '</a>';
}