Completed
Push — 1.11.x ( ae642b...8fe553 )
by José
74:31 queued 35:16
created
main/admin/skill_badge_create.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@  discard block
 block discarded – undo
22 22
 $objSkill = new Skill();
23 23
 $skill = $objSkill->get($skillId);
24 24
 
25
-$htmlHeadXtra[] = '<link  href="'. api_get_path(WEB_LIBRARY_JS_PATH) .'badge-studio/media/css/core.css" rel="stylesheet">';
25
+$htmlHeadXtra[] = '<link  href="'.api_get_path(WEB_LIBRARY_JS_PATH).'badge-studio/media/css/core.css" rel="stylesheet">';
26 26
 
27 27
 // Add badge studio paths
28 28
 
29 29
 $badgeStudio = [
30
-    'core' => api_get_path(WEB_LIBRARY_JS_PATH) .'badge-studio/',
31
-    'media' => api_get_path(WEB_LIBRARY_JS_PATH) .'badge-studio/media/',
32
-    'templates' => api_get_path(WEB_LIBRARY_JS_PATH) .'badge-studio/media/images/templates/',
33
-    'masks' => api_get_path(WEB_LIBRARY_JS_PATH) .'badge-studio/media/images/masks/',
34
-    'script_js' => '<script src="'. api_get_path(WEB_LIBRARY_JS_PATH) .'badge-studio/media/js/studio.js?"></script>'
30
+    'core' => api_get_path(WEB_LIBRARY_JS_PATH).'badge-studio/',
31
+    'media' => api_get_path(WEB_LIBRARY_JS_PATH).'badge-studio/media/',
32
+    'templates' => api_get_path(WEB_LIBRARY_JS_PATH).'badge-studio/media/images/templates/',
33
+    'masks' => api_get_path(WEB_LIBRARY_JS_PATH).'badge-studio/media/images/masks/',
34
+    'script_js' => '<script src="'.api_get_path(WEB_LIBRARY_JS_PATH).'badge-studio/media/js/studio.js?"></script>'
35 35
 ];
36 36
 
37 37
 
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
         if ($existsBadgesDirectory) {
60 60
 
61 61
             if (!empty($skill['icon'])) {
62
-                $iconFileAbsolutePath = $badgePath . $skill['icon'];
62
+                $iconFileAbsolutePath = $badgePath.$skill['icon'];
63 63
 
64 64
                 if (Security::check_abs_path($iconFileAbsolutePath, $badgePath)) {
65
-                    unlink($badgePath . $skill['icon']);
65
+                    unlink($badgePath.$skill['icon']);
66 66
                 }
67 67
             }
68 68
 
@@ -85,24 +85,24 @@  discard block
 block discarded – undo
85 85
 
86 86
     $objSkill->update($params);
87 87
 
88
-    header('Location: ' . api_get_path(WEB_CODE_PATH) . 'admin/skill_badge_list.php');
88
+    header('Location: '.api_get_path(WEB_CODE_PATH).'admin/skill_badge_list.php');
89 89
     exit;
90 90
 }
91 91
 
92 92
 $interbreadcrumb = array(
93 93
     array(
94
-        'url' => api_get_path(WEB_CODE_PATH) . 'admin/index.php',
94
+        'url' => api_get_path(WEB_CODE_PATH).'admin/index.php',
95 95
         'name' => get_lang('Administration')
96 96
     ),
97 97
     array(
98
-        'url' => api_get_path(WEB_CODE_PATH) . 'admin/skill_badge.php',
98
+        'url' => api_get_path(WEB_CODE_PATH).'admin/skill_badge.php',
99 99
         'name' => get_lang('Badges')
100 100
     )
101 101
 );
102 102
 
103 103
 $toolbar = Display::toolbarButton(
104 104
     get_lang('ManageSkills'),
105
-    api_get_path(WEB_CODE_PATH) . 'admin/skill_list.php',
105
+    api_get_path(WEB_CODE_PATH).'admin/skill_list.php',
106 106
     'list',
107 107
     'primary',
108 108
     ['title' => get_lang('ManageSkills')]
Please login to merge, or discard this patch.