@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | Display::return_message(get_lang('ItemRemoved'), 'success') |
28 | 28 | ); |
29 | 29 | |
30 | - header('Location: ' . api_get_self()); |
|
30 | + header('Location: '.api_get_self()); |
|
31 | 31 | exit; |
32 | 32 | } |
33 | 33 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | Display::return_message(get_lang('Saved'), 'success') |
44 | 44 | ); |
45 | 45 | |
46 | - header('Location:' . api_get_self()); |
|
46 | + header('Location:'.api_get_self()); |
|
47 | 47 | exit; |
48 | 48 | } |
49 | 49 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | Display::return_message(get_lang('Saved'), 'success') |
89 | 89 | ); |
90 | 90 | |
91 | - header('Location:' . api_get_self()); |
|
91 | + header('Location:'.api_get_self()); |
|
92 | 92 | exit; |
93 | 93 | } |
94 | 94 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | Display::return_message(get_lang('Saved'), 'success') |
128 | 128 | ); |
129 | 129 | |
130 | - header('Location:' . api_get_self()); |
|
130 | + header('Location:'.api_get_self()); |
|
131 | 131 | exit; |
132 | 132 | } |
133 | 133 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | Display::return_message(get_lang('Saved'), 'success') |
154 | 154 | ); |
155 | 155 | |
156 | - header('Location:' . api_get_self()); |
|
156 | + header('Location:'.api_get_self()); |
|
157 | 157 | exit; |
158 | 158 | } |
159 | 159 |
@@ -40,8 +40,8 @@ |
||
40 | 40 | $ErrorSeverityCode = urldecode($resArray["L_SEVERITYCODE0"]); |
41 | 41 | |
42 | 42 | echo "SetExpressCheckout API call failed. "; |
43 | - echo "Detailed Error Message: " . $ErrorLongMsg; |
|
44 | - echo "Short Error Message: " . $ErrorShortMsg; |
|
45 | - echo "Error Code: " . $ErrorCode; |
|
46 | - echo "Error Severity Code: " . $ErrorSeverityCode; |
|
43 | + echo "Detailed Error Message: ".$ErrorLongMsg; |
|
44 | + echo "Short Error Message: ".$ErrorShortMsg; |
|
45 | + echo "Error Code: ".$ErrorCode; |
|
46 | + echo "Error Severity Code: ".$ErrorSeverityCode; |
|
47 | 47 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | unset($_SESSION['bc_sale_id']); |
59 | 59 | |
60 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/index.php'); |
|
60 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/index.php'); |
|
61 | 61 | exit; |
62 | 62 | } |
63 | 63 | |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | } |
167 | 167 | |
168 | 168 | unset($_SESSION['bc_sale_id']); |
169 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/course_catalog.php'); |
|
169 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/course_catalog.php'); |
|
170 | 170 | exit; |
171 | 171 | } |
172 | 172 |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $currentUserId = api_get_user_id(); |
13 | 13 | |
14 | 14 | if (empty($currentUserId)) { |
15 | - header('Location: ' . api_get_path(WEB_CODE_PATH) . 'auth/inscription.php'); |
|
15 | + header('Location: '.api_get_path(WEB_CODE_PATH).'auth/inscription.php'); |
|
16 | 16 | exit; |
17 | 17 | } |
18 | 18 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | $buyingCourse = intval($_REQUEST['t']) === BuyCoursesPlugin::PRODUCT_TYPE_COURSE; |
29 | 29 | $buyingSession = intval($_REQUEST['t']) === BuyCoursesPlugin::PRODUCT_TYPE_SESSION; |
30 | -$queryString = 'i=' . intval($_REQUEST['i']) . '&t=' . intval($_REQUEST['t']); |
|
30 | +$queryString = 'i='.intval($_REQUEST['i']).'&t='.intval($_REQUEST['t']); |
|
31 | 31 | |
32 | 32 | if ($buyingCourse) { |
33 | 33 | $courseInfo = $plugin->getCourseInfo($_REQUEST['i']); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | Display::addFlash( |
49 | 49 | Display::return_message($plugin->get_lang('NeedToSelectPaymentType'), 'error', false) |
50 | 50 | ); |
51 | - header('Location:' . api_get_self() . '?' . $queryString); |
|
51 | + header('Location:'.api_get_self().'?'.$queryString); |
|
52 | 52 | exit; |
53 | 53 | } |
54 | 54 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | if ($saleId !== false) { |
58 | 58 | $_SESSION['bc_sale_id'] = $saleId; |
59 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/process_confirm.php'); |
|
59 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/process_confirm.php'); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | exit; |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | $sale['price'], |
46 | 46 | $currency['iso_code'], |
47 | 47 | 'paypal', |
48 | - api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/success.php', |
|
49 | - api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/error.php', |
|
48 | + api_get_path(WEB_PLUGIN_PATH).'buycourses/src/success.php', |
|
49 | + api_get_path(WEB_PLUGIN_PATH).'buycourses/src/error.php', |
|
50 | 50 | $extra |
51 | 51 | ); |
52 | 52 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | unset($_SESSION['bc_sale_id']); |
94 | 94 | |
95 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/index.php'); |
|
95 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/index.php'); |
|
96 | 96 | exit; |
97 | 97 | } |
98 | 98 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | ); |
130 | 130 | |
131 | 131 | unset($_SESSION['bc_sale_id']); |
132 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/course_catalog.php'); |
|
132 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/course_catalog.php'); |
|
133 | 133 | exit; |
134 | 134 | } |
135 | 135 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | api_not_allowed(true); |
25 | 25 | } |
26 | 26 | |
27 | - $urlToRedirect = api_get_self() . '?'; |
|
27 | + $urlToRedirect = api_get_self().'?'; |
|
28 | 28 | |
29 | 29 | switch ($_GET['action']) { |
30 | 30 | case 'confirm': |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | get_lang('Filter'), |
94 | 94 | [$plugin->get_lang('ByStatus'), $plugin->get_lang('ByUser')] |
95 | 95 | ); |
96 | -$form->addHtml('<div id="report-by-status" ' . ($selectedFilterType !== '0' ? 'style="display:none"' : '') . '>'); |
|
96 | +$form->addHtml('<div id="report-by-status" '.($selectedFilterType !== '0' ? 'style="display:none"' : '').'>'); |
|
97 | 97 | $form->addSelect('status', $plugin->get_lang('OrderStatus'), $saleStatuses); |
98 | 98 | $form->addHtml('</div>'); |
99 | -$form->addHtml('<div id="report-by-user" ' . ($selectedFilterType !== '1' ? 'style="display:none"' : '') . '>'); |
|
99 | +$form->addHtml('<div id="report-by-user" '.($selectedFilterType !== '1' ? 'style="display:none"' : '').'>'); |
|
100 | 100 | $form->addText('user', get_lang('UserName'), false); |
101 | 101 | $form->addHtml('</div>'); |
102 | 102 | $form->addButtonFilter(get_lang('Search')); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | $toolbar .= Display::toolbarButton( |
146 | 146 | $plugin->get_lang('PaypalPayoutCommissions'), |
147 | - api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/paypal_payout.php', |
|
147 | + api_get_path(WEB_PLUGIN_PATH).'buycourses/src/paypal_payout.php', |
|
148 | 148 | 'paypal', |
149 | 149 | 'primary', |
150 | 150 | ['title' => $plugin->get_lang('PaypalPayoutCommissions')] |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | $toolbar .= Display::toolbarButton( |
160 | 160 | $plugin->get_lang('PayoutReport'), |
161 | - api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/payout_report.php', |
|
161 | + api_get_path(WEB_PLUGIN_PATH).'buycourses/src/payout_report.php', |
|
162 | 162 | 'money', |
163 | 163 | 'info', |
164 | 164 | ['title' => $plugin->get_lang('PayoutReport')] |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For licensing terms, see /license.txt */ |
3 | 3 | |
4 | -require_once __DIR__ . '/../../main/inc/global.inc.php'; |
|
4 | +require_once __DIR__.'/../../main/inc/global.inc.php'; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | /** |
9 | 9 | * Initialization |
10 | 10 | */ |
11 | -require_once dirname(__FILE__) . '/config.php'; |
|
11 | +require_once dirname(__FILE__).'/config.php'; |
|
12 | 12 | if (!api_is_platform_admin()) { |
13 | 13 | die ('You must have admin permissions to install plugins'); |
14 | 14 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | api_get_setting('cas_activate') == 'true' && |
8 | 8 | $_user['auth_source'] == CAS_AUTH_SOURCE |
9 | 9 | ) { |
10 | - $_template['show_message'] = true; |
|
10 | + $_template['show_message'] = true; |
|
11 | 11 | // the link URL |
12 | 12 | $link_url = "#"; |
13 | 13 | if (!empty($plugin_info['settings']['ext_auth_chamilo_logout_button_behaviour_eaclbb_form_link_url'])) { |