From 5d9786ac08942c295b379cc15a758ee36309fe42 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 7 May 2010 19:12:59 +0000 Subject: [PATCH] fixed field translations --- lam/templates/pdfedit/pdfpage.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lam/templates/pdfedit/pdfpage.php b/lam/templates/pdfedit/pdfpage.php index 8fe3a242..8eb1a173 100644 --- a/lam/templates/pdfedit/pdfpage.php +++ b/lam/templates/pdfedit/pdfpage.php @@ -436,7 +436,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) { if($entry['tag'] == "SECTION" && $entry['type'] == "open") { $name = $entry['attributes']['NAME']; if(preg_match("/^_[a-zA-Z0-9_]+_[a-zA-Z0-9_]+/",$name)) { - $section_headline = translateFieldIDToName(substr($name,1)); + $section_headline = translateFieldIDToName(substr($name,1), $_GET['type']); } else { $section_headline = $name; @@ -454,7 +454,7 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) { - + @@ -740,7 +740,6 @@ function translateFieldIDToName($id, $scope) { } } } - } return $id; }