function print_link($link_text, $rep, $pars = array(), $dir = '',
$icon=false, $class='printlink', $id='')
{
- global $path_to_root, $pdf_debug;
+ global $path_to_root, $SysPrefs;
$url = $dir == '' ? $path_to_root.'/reporting/prn_redirect.php?' : $dir;
$url .= implode ('&', $pars);
if ($class != '')
- $class = $pdf_debug ? '' : " class='$class'";
+ $class = $SysPrefs->pdf_debug ? '' : " class='$class'";
if ($id != '')
$id = " id='$id'";
$pars = access_string($link_text);