From f694cb93f43e4d459c06969328be366b8b500c44 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 18 Jul 2005 15:55:54 +0000 Subject: [PATCH] use correct function to get list of PDF structures --- lam/lib/modules.inc | 2 +- lam/templates/lists/listgroups.php | 2 +- lam/templates/lists/listhosts.php | 2 +- lam/templates/lists/listusers.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index c4491c79..0ce86da7 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -958,7 +958,7 @@ class accountContainer { $return[] = array( 0 => array('kind' => 'text', 'text' => ' ') ); - $pdfStructures = getAvailablePDFStructures($type); + $pdfStructures = getPDFStructureDefinitions($type); $return[] = array( 0 => array('kind' => 'fieldset', 'legend' => 'PDF', 'td' => array('colspan' => 2), 'value' => array(array( 0 => array('kind' => 'select', 'name' => 'pdfStructure', 'options' => $pdfStructures), diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index 914840a4..d241d28e 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -240,7 +240,7 @@ if (sizeof($info) > 0) { echo ("


\n"); echo "
PDF\n"; echo ("" . _('PDF structure') . ":  \n"); - $pdf_structures = getAvailablePDFStructures('host'); + $pdf_structures = getPDFStructureDefinitions($scope); foreach($pdf_structures as $pdf_structure) { echo ""; } diff --git a/lam/templates/lists/listusers.php b/lam/templates/lists/listusers.php index e427c073..650176f9 100644 --- a/lam/templates/lists/listusers.php +++ b/lam/templates/lists/listusers.php @@ -285,7 +285,7 @@ if (sizeof($info) != 0) { echo ("


\n"); echo "
PDF\n"; echo ("" . _('PDF structure') . ":