Passed
Push — 1.10.x ( d9a04b...aeb152 )
by Yannick
123:06 queued 74:04
created
main/gradebook/gradebook_edit_all.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
 $submitted = isset($_POST['submitted']) ? $_POST['submitted'] : '';
81 81
 if ($submitted == 1) {
82
-    Display :: display_confirmation_message(get_lang('GradebookWeightUpdated')) . '<br /><br />';
82
+    Display :: display_confirmation_message(get_lang('GradebookWeightUpdated')).'<br /><br />';
83 83
     if (isset($_POST['evaluation'])) {
84 84
         $eval_log = new Evaluation();
85 85
     }
Please login to merge, or discard this patch.
main/gradebook/exercise_jump.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 require_once '../inc/global.inc.php';
14 14
 api_block_anonymous_users();
15
-$this_section=SECTION_COURSES;
15
+$this_section = SECTION_COURSES;
16 16
 
17 17
 $gradebook = Security::remove_XSS($_GET['gradebook']);
18 18
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 $doExerciseUrl = null;
25 25
 
26 26
 if (isset($_GET['doexercise'])) {
27
-    $doExerciseUrl = api_get_path(WEB_CODE_PATH) . 'exercise/overview.php?' . http_build_query([
27
+    $doExerciseUrl = api_get_path(WEB_CODE_PATH).'exercise/overview.php?'.http_build_query([
28 28
         'session_id' => $session_id,
29 29
         'cidReq' => $cidReq,
30 30
         'gradebook' => $gradebook,
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
                         // If the exercise was added once redirect to the LP
61 61
                         $firstLp = current($exercise->lpList);
62 62
                         if (isset($firstLp['lp_id'])) {
63
-                            $url = api_get_path(WEB_CODE_PATH) . 'newscorm/lp_controller.php?' . api_get_cidreq() . '&lp_id=' . $firstLp['lp_id'] . '&action=view&isStudentView=true';
63
+                            $url = api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?'.api_get_cidreq().'&lp_id='.$firstLp['lp_id'].'&action=view&isStudentView=true';
64 64
                         }
65 65
                     } else {
66 66
                         // If the exercise was added multiple times show the LP list
67
-                        $url = api_get_path(WEB_CODE_PATH) . 'newscorm/lp_controller.php?' . api_get_cidreq().'&action=list';
67
+                        $url = api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?'.api_get_cidreq().'&action=list';
68 68
                     }
69 69
                 }
70 70
             }
Please login to merge, or discard this patch.
main/gradebook/gradebook_showlog_link.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 api_block_anonymous_users();
12 12
 GradebookUtils::block_students();
13 13
 
14
-$interbreadcrumb[] = array ('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?','name' => get_lang('Gradebook'));
15
-$interbreadcrumb[] = array ('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?selectcat='.Security::remove_XSS($_GET['selectcat']),'name' => get_lang('Details'));
16
-$interbreadcrumb[] = array ('url' => 'gradebook_showlog_link.php?visiblelink='.Security::remove_XSS($_GET['visiblelink']).'&amp;selectcat='.Security::remove_XSS($_GET['selectcat']),	'name' => get_lang('GradebookQualifyLog'));
14
+$interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?', 'name' => get_lang('Gradebook'));
15
+$interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']).'?selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('Details'));
16
+$interbreadcrumb[] = array('url' => 'gradebook_showlog_link.php?visiblelink='.Security::remove_XSS($_GET['visiblelink']).'&amp;selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('GradebookQualifyLog'));
17 17
 $this_section = SECTION_COURSES;
18 18
 Display :: display_header('');
19 19
 echo '<div class="actions">';
@@ -22,21 +22,21 @@  discard block
 block discarded – undo
22 22
 
23 23
 $t_user     = Database :: get_main_table(TABLE_MAIN_USER);
24 24
 $t_link_log = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
25
-$visible_link=Security::remove_XSS($_GET['visiblelink']);
25
+$visible_link = Security::remove_XSS($_GET['visiblelink']);
26 26
 $evaledit   = EvalLink :: load($visible_link);
27 27
 $sql = "SELECT lk.name,lk.description,lk.weight,lk.visible,lk.type,lk.created_at,us.username
28 28
         FROM ".$t_link_log." lk inner join ".$t_user." us
29 29
         ON lk.user_id_log=us.user_id
30 30
         WHERE lk.id_linkeval_log=".$evaledit[0]->get_id()." AND lk.type='link';";
31
-$result=Database::query($sql);
32
-$list_info=array();
33
-while ($row=Database::fetch_row($result)) {
31
+$result = Database::query($sql);
32
+$list_info = array();
33
+while ($row = Database::fetch_row($result)) {
34 34
     $list_info[] = $row;
35 35
 }
36 36
 
37
-foreach($list_info as $key => $info_log) {
38
-    $list_info[$key][5]=($info_log[5]) ? api_convert_and_format_date($info_log[5]) : 'N/A';
39
-    $list_info[$key][3]=($info_log[3]==1) ? get_lang('GradebookVisible') : get_lang('GradebookInvisible');
37
+foreach ($list_info as $key => $info_log) {
38
+    $list_info[$key][5] = ($info_log[5]) ? api_convert_and_format_date($info_log[5]) : 'N/A';
39
+    $list_info[$key][3] = ($info_log[3] == 1) ? get_lang('GradebookVisible') : get_lang('GradebookInvisible');
40 40
 }
41 41
 
42 42
 $parameters = array(
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     'selectcat' => Security::remove_XSS($_GET['selectcat']),
45 45
 );
46 46
 
47
-$table = new SortableTableFromArrayConfig($list_info, 1,20,'gradebooklink');
47
+$table = new SortableTableFromArrayConfig($list_info, 1, 20, 'gradebooklink');
48 48
 $table->set_additional_parameters($parameters);
49 49
 $table->set_header(0, get_lang('GradebookNameLog'));
50 50
 $table->set_header(1, get_lang('GradebookDescriptionLog'));
Please login to merge, or discard this patch.
main/gradebook/my_certificates.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         'actions',
37 37
         Display::toolbarButton(
38 38
             get_lang('SearchCertificates'),
39
-            api_get_path(WEB_CODE_PATH) . "gradebook/search.php",
39
+            api_get_path(WEB_CODE_PATH)."gradebook/search.php",
40 40
             'search',
41 41
             'info'
42 42
         )
Please login to merge, or discard this patch.
main/gradebook/gradebook_edit_link.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@  discard block
 block discarded – undo
11 11
 GradebookUtils::block_students();
12 12
 $tbl_grade_links = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINK);
13 13
 //selected name of database
14
-$course_id              = GradebookUtils::get_course_id_by_link_id($_GET['editlink']);
15
-$tbl_forum_thread 		= Database :: get_course_table(TABLE_FORUM_THREAD);
16
-$tbl_work 				= Database :: get_course_table(TABLE_STUDENT_PUBLICATION);
17
-$tbl_attendance 		= Database :: get_course_table(TABLE_ATTENDANCE);
14
+$course_id = GradebookUtils::get_course_id_by_link_id($_GET['editlink']);
15
+$tbl_forum_thread = Database :: get_course_table(TABLE_FORUM_THREAD);
16
+$tbl_work = Database :: get_course_table(TABLE_STUDENT_PUBLICATION);
17
+$tbl_attendance = Database :: get_course_table(TABLE_ATTENDANCE);
18 18
 
19
-$linkarray 				= LinkFactory :: load($_GET['editlink']);
19
+$linkarray = LinkFactory :: load($_GET['editlink']);
20 20
 /** @var AbstractLink $link */
21 21
 $link = $linkarray[0];
22 22
 if ($link->is_locked() && !api_is_platform_admin()) {
23 23
     api_not_allowed();
24 24
 }
25 25
 
26
-$linkcat  = isset($_GET['selectcat']) ? Security::remove_XSS($_GET['selectcat']):'';
27
-$linkedit = isset($_GET['editlink']) ? Security::remove_XSS($_GET['editlink']):'';
26
+$linkcat  = isset($_GET['selectcat']) ? Security::remove_XSS($_GET['selectcat']) : '';
27
+$linkedit = isset($_GET['editlink']) ? Security::remove_XSS($_GET['editlink']) : '';
28 28
 
29 29
 $session_id = api_get_session_id();
30 30
 if ($session_id == 0) {
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     null,
40 40
     $link,
41 41
     'edit_link_form',
42
-    api_get_self() . '?selectcat=' . $linkcat. '&editlink=' . $linkedit.'&'.api_get_cidreq()
42
+    api_get_self().'?selectcat='.$linkcat.'&editlink='.$linkedit.'&'.api_get_cidreq()
43 43
 );
44 44
 if ($form->validate()) {
45 45
     $values = $form->exportValues();
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     //Update weight for attendance
59 59
     $sql = 'SELECT ref_id FROM '.$tbl_grade_links.'
60 60
             WHERE id = '.intval($_GET['editlink']).' AND type='.LINK_ATTENDANCE;
61
-    $rs_attendance  = Database::query($sql);
61
+    $rs_attendance = Database::query($sql);
62 62
     if (Database::num_rows($rs_attendance) > 0) {
63 63
         $row_attendance = Database::fetch_array($rs_attendance);
64 64
         $attendance_id  = $row_attendance['ref_id'];
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
               weight='.$final_weight.'
82 82
 			  WHERE c_id = '.$course_id.' AND id = (
83 83
 			    SELECT ref_id FROM '.$tbl_grade_links.'
84
-			    WHERE id='.intval($_GET['editlink'] ).' AND type=3
84
+			    WHERE id='.intval($_GET['editlink']).' AND type=3
85 85
               )';
86 86
 
87 87
     Database::query($sql_t);
88
-    header('Location: '.$_SESSION['gradebook_dest'].'?linkedited=&selectcat=' . $link->get_category_id().'&'.api_get_cidreq());
88
+    header('Location: '.$_SESSION['gradebook_dest'].'?linkedited=&selectcat='.$link->get_category_id().'&'.api_get_cidreq());
89 89
     exit;
90 90
 }
91 91
 
Please login to merge, or discard this patch.
main/gradebook/gradebook_add_user.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -14,59 +14,59 @@
 block discarded – undo
14 14
 api_block_anonymous_users();
15 15
 GradebookUtils::block_students();
16 16
 
17
-$evaluation= Evaluation :: load($_GET['selecteval']);
17
+$evaluation = Evaluation :: load($_GET['selecteval']);
18 18
 $newstudents = $evaluation[0]->get_not_subscribed_students();
19 19
 
20 20
 if (count($newstudents) == '0') {
21
-	header('Location: gradebook_view_result.php?nouser=&selecteval=' . Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq());
21
+	header('Location: gradebook_view_result.php?nouser=&selecteval='.Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq());
22 22
 	exit;
23 23
 }
24
-$add_user_form= new EvalForm(EvalForm :: TYPE_ADD_USERS_TO_EVAL,
24
+$add_user_form = new EvalForm(EvalForm :: TYPE_ADD_USERS_TO_EVAL,
25 25
 							 $evaluation[0],
26 26
 							 null,
27 27
 							 'add_users_to_evaluation',
28 28
 							 null,
29
-							 api_get_self() . '?selecteval=' . Security::remove_XSS($_GET['selecteval']),
29
+							 api_get_self().'?selecteval='.Security::remove_XSS($_GET['selecteval']),
30 30
 							 Security::remove_XSS($_GET['firstletter']),
31 31
 							 $newstudents);
32 32
 
33
-if ( isset($_POST['submit_button']) ) {
34
-	$users= is_array($_POST['add_users']) ? $_POST['add_users'] : array ();
35
-	foreach ($users as $key => $value){
36
-		$users[$key]= intval($value);
33
+if (isset($_POST['submit_button'])) {
34
+	$users = is_array($_POST['add_users']) ? $_POST['add_users'] : array();
35
+	foreach ($users as $key => $value) {
36
+		$users[$key] = intval($value);
37 37
 	}
38 38
 
39 39
 	if (count($users) == 0) {
40
-		header('Location: ' . api_get_self() . '?erroroneuser=&selecteval=' .Security::remove_XSS($_GET['selecteval']));
40
+		header('Location: '.api_get_self().'?erroroneuser=&selecteval='.Security::remove_XSS($_GET['selecteval']));
41 41
 		exit;
42 42
 	} else {
43 43
 		foreach ($users as $user_id) {
44
-			$result= new Result();
44
+			$result = new Result();
45 45
 			$result->set_user_id($user_id);
46 46
 			$result->set_evaluation_id($_GET['selecteval']);
47 47
 			$result->add();
48 48
 			}
49 49
 		}
50
-	header('Location: gradebook_view_result.php?adduser=&selecteval=' .Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq());
50
+	header('Location: gradebook_view_result.php?adduser=&selecteval='.Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq());
51 51
 	exit;
52 52
 	} elseif ($_POST['firstLetterUser']) {
53
-		$firstletter= $_POST['firstLetterUser'];
53
+		$firstletter = $_POST['firstLetterUser'];
54 54
 		if (!empty ($firstletter)) {
55
-			header('Location: ' . api_get_self() . '?firstletter=' . Security::remove_XSS($firstletter) . '&selecteval=' . Security::remove_XSS($_GET['selecteval']));
55
+			header('Location: '.api_get_self().'?firstletter='.Security::remove_XSS($firstletter).'&selecteval='.Security::remove_XSS($_GET['selecteval']));
56 56
 			exit;
57 57
 		}
58 58
 }
59 59
 
60
-$interbreadcrumb[]= array ('url' => Security::remove_XSS($_SESSION['gradebook_dest']),'name' => get_lang('Gradebook'));
61
-$interbreadcrumb[]= array(
62
-	'url' => 'gradebook_view_result.php?selecteval=' .Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq(),
60
+$interbreadcrumb[] = array('url' => Security::remove_XSS($_SESSION['gradebook_dest']), 'name' => get_lang('Gradebook'));
61
+$interbreadcrumb[] = array(
62
+	'url' => 'gradebook_view_result.php?selecteval='.Security::remove_XSS($_GET['selecteval']).'&'.api_get_cidreq(),
63 63
 	'name' => get_lang('ViewResult')
64 64
 );
65 65
 Display :: display_header(get_lang('AddUserToEval'));
66
-if (isset ($_GET['erroroneuser'])){
67
-	Display :: display_warning_message(get_lang('AtLeastOneUser'),false);
66
+if (isset ($_GET['erroroneuser'])) {
67
+	Display :: display_warning_message(get_lang('AtLeastOneUser'), false);
68 68
 }
69
-DisplayGradebook :: display_header_result($evaluation[0], null, 0,0);
69
+DisplayGradebook :: display_header_result($evaluation[0], null, 0, 0);
70 70
 echo '<div class="main">';
71 71
 echo $add_user_form->toHtml();
72 72
 echo '</div>';
Please login to merge, or discard this patch.
main/gradebook/user_stats.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 if (!$isDrhOfCourse) {
17 17
     GradebookUtils::block_students();
18 18
 }
19
-$interbreadcrumb[]= array (
19
+$interbreadcrumb[] = array(
20 20
     'url' => $_SESSION['gradebook_dest'],
21 21
     'name' => get_lang('Gradebook'
22 22
 ));
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 $alllinks = $category[0]->get_links($my_user_id, true);
28 28
 
29 29
 if ($_GET['selectcat'] != null) {
30
-    $addparams= array (
30
+    $addparams = array(
31 31
         'userid' => $my_user_id,
32 32
         'selectcat' => Security::remove_XSS($_GET['selectcat'])
33 33
     );
34 34
 } else {
35
-    $addparams= array (
35
+    $addparams = array(
36 36
         'userid' => $my_user_id,
37 37
         'selecteval' => Security::remove_XSS($_GET['selecteval'])
38 38
     );
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $newarray[] = array_slice($data, 1);
50 50
     }
51 51
     $userinfo = api_get_user_info($my_user_id);
52
-    $html .= get_lang('Results').' : '.api_get_person_name($userinfo['firstname'], $userinfo['lastname']).' ('. api_convert_and_format_date(null, DATE_FORMAT_SHORT). ' ' . api_convert_and_format_date(null, TIME_NO_SEC_FORMAT) .')';
52
+    $html .= get_lang('Results').' : '.api_get_person_name($userinfo['firstname'], $userinfo['lastname']).' ('.api_convert_and_format_date(null, DATE_FORMAT_SHORT).' '.api_convert_and_format_date(null, TIME_NO_SEC_FORMAT).')';
53 53
 
54 54
     if ($displayscore->is_custom()) {
55 55
         $header_names = array(
@@ -95,23 +95,23 @@  discard block
 block discarded – undo
95 95
 $actions = '<div class="actions">';
96 96
 
97 97
 if (isset($_GET['selectcat'])) {
98
-    $interbreadcrumb[]= array ('url' => 'gradebook_flatview.php?selectcat=' . Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('FlatView'));
99
-    $actions.= '<a href=gradebook_flatview.php?selectcat=' .Security::remove_XSS($_GET['selectcat']) . '>' . Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('FlatView'),'',ICON_SIZE_MEDIUM).'</a>';
98
+    $interbreadcrumb[] = array('url' => 'gradebook_flatview.php?selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('FlatView'));
99
+    $actions .= '<a href=gradebook_flatview.php?selectcat='.Security::remove_XSS($_GET['selectcat']).'>'.Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('FlatView'), '', ICON_SIZE_MEDIUM).'</a>';
100 100
 }
101 101
 
102 102
 if (isset ($_GET['selecteval'])) {
103
-    $interbreadcrumb[]= array (
104
-        'url' => 'gradebook_view_result.php?selecteval=' . Security::remove_XSS($_GET['selecteval']),
103
+    $interbreadcrumb[] = array(
104
+        'url' => 'gradebook_view_result.php?selecteval='.Security::remove_XSS($_GET['selecteval']),
105 105
         'name' => get_lang('ViewResult'
106 106
     ));
107
-    $actions.= '<a href=gradebook_view_result.php?selecteval=' . Security::remove_XSS($_GET['selecteval']) . '>
108
-	'.Display::return_icon('back.png', get_lang('BackToEvaluation'),'',ICON_SIZE_MEDIUM).'</a>';
107
+    $actions .= '<a href=gradebook_view_result.php?selecteval='.Security::remove_XSS($_GET['selecteval']).'>
108
+	'.Display::return_icon('back.png', get_lang('BackToEvaluation'), '', ICON_SIZE_MEDIUM).'</a>';
109 109
 }
110 110
 
111
-$actions.= '<a href="' . api_get_self() . '?exportpdf=&userid='.Security::remove_XSS($_GET['userid']).'&selectcat=' . $category[0]->get_id() . '" target="_blank">
112
-' . Display::return_icon('pdf.png', get_lang('ExportPDF'),'',ICON_SIZE_MEDIUM).'</a>';
111
+$actions .= '<a href="'.api_get_self().'?exportpdf=&userid='.Security::remove_XSS($_GET['userid']).'&selectcat='.$category[0]->get_id().'" target="_blank">
112
+' . Display::return_icon('pdf.png', get_lang('ExportPDF'), '', ICON_SIZE_MEDIUM).'</a>';
113 113
 
114
-$actions.='</div>';
114
+$actions .= '</div>';
115 115
 
116 116
 Display :: display_header(get_lang('ResultsPerUser'));
117 117
 echo $actions;
Please login to merge, or discard this patch.
main/gradebook/gradebook_flatview.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * @package chamilo.gradebook
7 7
  */
8 8
 require_once '../inc/global.inc.php';
9
-$current_course_tool  = TOOL_GRADEBOOK;
9
+$current_course_tool = TOOL_GRADEBOOK;
10 10
 
11 11
 api_protect_course_script(true);
12 12
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     null,
73 73
     'simple_search_form',
74 74
     null,
75
-    api_get_self() . '?selectcat=' . $category_id
75
+    api_get_self().'?selectcat='.$category_id
76 76
 );
77 77
 $values = $simple_search_form->exportValues();
78 78
 
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
     }
147 147
 }
148 148
 
149
-if (isset($_GET['exportpdf']))	{
150
-    $interbreadcrumb[] = array (
151
-        'url' => api_get_self().'?selectcat=' . Security::remove_XSS($_GET['selectcat']).'&'.api_get_cidreq(),
149
+if (isset($_GET['exportpdf'])) {
150
+    $interbreadcrumb[] = array(
151
+        'url' => api_get_self().'?selectcat='.Security::remove_XSS($_GET['selectcat']).'&'.api_get_cidreq(),
152 152
         'name' => get_lang('FlatView')
153 153
     );
154 154
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     }
188 188
 }
189 189
 
190
-if (isset($_GET['print']))	{
190
+if (isset($_GET['print'])) {
191 191
     $printable_data = GradebookUtils::get_printable_data(
192 192
         $cat[0],
193 193
         $users,
Please login to merge, or discard this patch.
main/gradebook/get_badges.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 foreach ($userSkills as $skill) {
34 34
     $skillId = current($skill);
35 35
 
36
-    $assertionUrl = api_get_path(WEB_CODE_PATH) . "badge/assertion.php?";
36
+    $assertionUrl = api_get_path(WEB_CODE_PATH)."badge/assertion.php?";
37 37
     $assertionUrl .= http_build_query(array(
38 38
         'user' => $userId,
39 39
         'skill' => $skillId,
@@ -51,14 +51,14 @@  discard block
 block discarded – undo
51 51
     $backpack = $configBackpack;
52 52
 }
53 53
 
54
-$htmlHeadXtra[] = '<script src="' . $backpack . 'issuer.js"></script>';
54
+$htmlHeadXtra[] = '<script src="'.$backpack.'issuer.js"></script>';
55 55
 
56 56
 $tpl = new Template(get_lang('Badges'), false, false);
57 57
 
58 58
 $tpl->assign(
59 59
     'content',
60 60
     "<script>"
61
-    . "$(document).on('ready', function (){ OpenBadges.issue_no_modal(" . json_encode($assertions) . "); });"
61
+    . "$(document).on('ready', function (){ OpenBadges.issue_no_modal(".json_encode($assertions)."); });"
62 62
     . "</script>"
63 63
 );
64 64
 
Please login to merge, or discard this patch.