From 51511964825d31548c3d55a1d9de482feaef06cb Mon Sep 17 00:00:00 2001 From: Alex Aragon Date: Fri, 5 May 2017 17:19:58 -0500 Subject: [PATCH] fix declare variable and format code -refs BT#12665 #1917 --- main/course_progress/thematic_controller.php | 7 +------ .../default/course_progress/pdf_general_thematic.tpl | 6 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/main/course_progress/thematic_controller.php b/main/course_progress/thematic_controller.php index a13d663fb0..b4ca88929b 100755 --- a/main/course_progress/thematic_controller.php +++ b/main/course_progress/thematic_controller.php @@ -204,7 +204,7 @@ class ThematicController $list = $thematic->get_thematic_list(); $item = array(); - + $listFinish = array(); foreach ($list as $theme) { $dataPlan = $thematic->get_thematic_plan_data($theme['id']); if (!empty($dataPlan)) { @@ -220,16 +220,11 @@ class ThematicController $theme['thematic_plan'] = $item; } - $dataAdvance = $thematic->get_thematic_advance_by_thematic_id($theme['id']); - //var_dump($dataAdvance); if (!empty($dataAdvance)) { $theme['thematic_advance'] = $dataAdvance; } - $listFinish[] = $theme; - //var_dump($theme['thematic_advance']); - //exit(); } $view = new Template('', false, false, false, true, false, false); diff --git a/main/template/default/course_progress/pdf_general_thematic.tpl b/main/template/default/course_progress/pdf_general_thematic.tpl index 1903cd3112..a548079a14 100644 --- a/main/template/default/course_progress/pdf_general_thematic.tpl +++ b/main/template/default/course_progress/pdf_general_thematic.tpl @@ -3,13 +3,13 @@ - {{ "Thematic" | get_lang }} + {{ "Thematic"|get_lang }} - {{ "ThematicPlan" | get_lang }} + {{ "ThematicPlan"|get_lang }} - {{ "ThematicAdvance" | get_lang }} + {{ "ThematicAdvance"|get_lang }}