From b14bcb36ad2145721205145561ae9a2d024a3a36 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 9 Jan 2015 09:02:33 +0100 Subject: [PATCH] Adding option $_configuration['certificate_pdf_orientation'] See BT#9250 --- main/gradebook/lib/be/category.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/gradebook/lib/be/category.class.php b/main/gradebook/lib/be/category.class.php index e015b8e143..8a8559d48c 100755 --- a/main/gradebook/lib/be/category.class.php +++ b/main/gradebook/lib/be/category.class.php @@ -1680,7 +1680,13 @@ class Category implements GradebookItem $catId, $userList = array() ) { + $orientation = api_get_configuration_value('certificate_pdf_orientation'); + $params['orientation'] = 'landscape'; + if (!empty($orientation)) { + $params['orientation'] = $orientation; + } + $params['left'] = 0; $params['right'] = 0; $params['top'] = 0;