From 1a4d46befc7b8577a2e9a9dfc944be6a6b449df0 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 29 May 2015 08:17:01 -0500 Subject: [PATCH] Rename variable - refs BT#9886 #TMI --- main/newscorm/lp_list.php | 6 +++--- main/template/default/learnpath/list.tpl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/newscorm/lp_list.php b/main/newscorm/lp_list.php index cf66e0fc4f..7b99fdc2c1 100755 --- a/main/newscorm/lp_list.php +++ b/main/newscorm/lp_list.php @@ -127,7 +127,7 @@ if (!empty($categoriesTempList)) { $userId = api_get_user_id(); $userInfo = api_get_user_info(); -$lp_showed = false; +$lpIsShown = false; $test_mode = api_get_setting('server_type'); @@ -778,7 +778,7 @@ foreach ($categories as $item) { 'action_seriousgame' => $actionSeriousGame ]; - $lp_showed = true; + $lpIsShown = true; //counter for number of elements treated $current++; @@ -799,7 +799,7 @@ $template->assign('message', $message); $template->assign('introduction_section', $introductionSection); $template->assign('data', $data); -$template->assign('lp_showed', $lp_showed); +$template->assign('lp_is_shown', $lpIsShown); $content = $template->fetch('default/learnpath/list.tpl'); diff --git a/main/template/default/learnpath/list.tpl b/main/template/default/learnpath/list.tpl index 25b5df855f..82e06f9a83 100644 --- a/main/template/default/learnpath/list.tpl +++ b/main/template/default/learnpath/list.tpl @@ -120,7 +120,7 @@ {% endif %} {% endfor %} -{% if is_allowed_to_edit and not lp_showed %} +{% if is_allowed_to_edit and not lp_is_shown %}

{{ "LearningPaths"|get_lang }}