Fix category title see BT#10882

1.10.x
jmontoya 10 years ago
parent 2fb41be35e
commit 669e363397
  1. 12
      main/newscorm/lp_list.php
  2. 18
      main/template/default/learnpath/list.tpl

@ -417,9 +417,8 @@ foreach ($categories as $item) {
api_get_self() . '?' . api_get_cidreq() . "&lp_id=$id&action=toggle_publish&new_status=v"
);
} else {
$dsp_publish = "<a href='".api_get_self(
)."?".api_get_cidreq(
)."&lp_id=$id&action=toggle_publish&new_status=i'>".Display::return_icon(
$dsp_publish = "<a href='".api_get_self()."?".api_get_cidreq()."&lp_id=$id&action=toggle_publish&new_status=i'>".
Display::return_icon(
'lp_publish.png',
get_lang('LearnpathDoNotPublish'),
'',
@ -496,7 +495,6 @@ foreach ($categories as $item) {
/* SCREEN LP VIEW */
if ($current_session == $details['lp_session']) {
switch ($details['lp_view_mode']) {
case 'fullscreen':
$dsp_default_view = Display::url(
@ -610,11 +608,7 @@ foreach ($categories as $item) {
array(),
ICON_SIZE_SMALL
),
api_get_self()."?".api_get_cidreq(
)."&action=export&lp_id=$id&export_name=".api_replace_dangerous_char(
$name,
'strict'
).".zip"
api_get_self()."?".api_get_cidreq()."&action=export&lp_id=$id&export_name=".api_replace_dangerous_char($name, 'strict' ).".zip"
);
} else {
$dsp_disk = Display::return_icon(

@ -12,14 +12,20 @@
{% for lp_data in data %}
<h3 class="page-header">
{% if (categories|length) > 1 %}
{% if lp_data.lp_list and lp_data.category.getId() != 0 %}
{{ lp_data.category.getName() }}
{% elseif lp_data.lp_list and lp_data.category.getId() == 0 %}
{{ lp_data.category.getName() }}
{% elseif not lp_data.lp_list and lp_data.category.getId() != 0 %}
{% if is_allowed_to_edit %}
{% if (categories|length) > 1 %}
{{ lp_data.category.getName() }}
{% endif %}
{% else %}
{% if (categories|length) > 1 %}
{% if lp_data.lp_list is not empty and lp_data.category.getId() != 0 %}
{{ lp_data.category.getName() }}
{% elseif lp_data.lp_list is not empty and lp_data.category.getId() == 0 %}
{{ lp_data.category.getName() }}
{% elseif lp_data.lp_list is not empty and lp_data.category.getId() != 0 %}
{{ lp_data.category.getName() }}
{% endif %}
{% endif %}
{% endif %}
{% if lp_data.category.getId() > 0 and is_allowed_to_edit %}

Loading…
Cancel
Save