Minor: Improve code style in commit 74e1bb4c19 - refs BT#17943

pull/3643/head
Yannick Warnier 6 years ago
parent 74e1bb4c19
commit 912c5b5751
  1. 3
      main/inc/lib/extra_field.lib.php
  2. 6
      main/lp/learnpath.class.php
  3. 5
      main/lp/lp_add_author.php
  4. 3
      main/lp/lp_add_item.php
  5. 3
      main/lp/lp_controller.php
  6. 3
      main/lp/lp_edit_item.php
  7. 2
      main/mySpace/admin_view.php
  8. 4
      plugin/check_extra_field_author_company/plugin.php

@ -1212,7 +1212,8 @@ class ExtraField extends Model
1,
true,
false,
true);
true
);
foreach ($arrayExtraFieldValueUser as $item) {
$teacher = api_get_user_info($item['item_id']);

@ -6756,9 +6756,9 @@ class learnpath
[
'title' => get_lang('ClearAllPrerequisites'),
'href' => 'lp_controller.php?'.api_get_cidreq().'&'.http_build_query([
'action' => 'clear_prerequisites',
'lp_id' => $lpId,
]),
'action' => 'clear_prerequisites',
'lp_id' => $lpId,
]),
],
];
$actionsRight = Display::groupButtonWithDropDown(

@ -288,7 +288,8 @@ if ($idExtraField != 0) {
1,
true,
false,
true);
true
);
foreach ($arrayExtraFieldValueUser as $item) {
$teacher = api_get_user_info($item['item_id']);
@ -359,7 +360,7 @@ if ($form->validate()) {
}
$saveAuthor = array_unique($saveAuthor);
$messages .= implode(' / ', $saveAuthor);
$currentUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http")."://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$currentUrl = api_get_self();
if (!empty($messages)) {
if ($removeExist) {
Session::write('messageError', get_lang('DeletedAuthors'));

@ -205,7 +205,8 @@ echo $learnPath->build_action_menu(false,
false,
true,
'',
$extraField);
$extraField
);
echo '<div class="row">';
echo '<div id="lp_sidebar" class="col-md-4">';
echo $learnPath->return_new_tree(null, true);

@ -517,7 +517,8 @@ switch ($action) {
1,
true,
false,
true);
true
);
foreach ($arrayExtraFieldValueUser as $item) {
$teacher = api_get_user_info($item['item_id']);

@ -130,7 +130,8 @@ echo $learnPath->build_action_menu(false,
false,
true,
'',
$extraField);
$extraField
);
echo '<div class="row">';
echo '<div id="lp_sidebar" class="col-md-4">';

@ -41,10 +41,8 @@ function ShowMoreAuthor(el){
$(".icon_add_author_"+el).addClass("hidden");
}else{
$(".author_"+el).addClass("hidden")
$(".icon_remove_author_"+el).addClass("hidden");
$(".icon_add_author_"+el).removeClass("hidden");
}
}
</script>';

@ -15,8 +15,8 @@
* Plugin details (must be present).
*/
$plugin_info['title'] = 'Reports: "Distribution by entity" and "Distribution by author"';
$plugin_info['comment'] = 'To enable report, You must activate the user subscription to the learning path through the '.
$plugin_info['comment'] = 'To enable this report, you must activate user subscription to a learning path through the '.
'"Course settings" -> "Subscribe users to learning path" <br>'.
'Then you can go to /main/mySpace/ to see the reports.';
'You can then go to /main/mySpace/ to see the new reports.';
$plugin_info['version'] = '1.1'; // o la versión que corresponda
$plugin_info['author'] = 'Carlos Alvarado';

Loading…
Cancel
Save