@@ -10,7 +10,7 @@ |
||
10 | 10 | * Initialization |
11 | 11 | */ |
12 | 12 | |
13 | -require_once dirname(__FILE__) . '/config.php'; |
|
13 | +require_once dirname(__FILE__).'/config.php'; |
|
14 | 14 | if (!api_is_platform_admin()) { |
15 | 15 | die ('You must have admin permissions to install plugins'); |
16 | 16 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | $resubscriptionLimit = Resubscription::create()->get('resubscription_limit'); |
33 | 33 | |
34 | - // Initialize variables as a calendar year by default |
|
34 | + // Initialize variables as a calendar year by default |
|
35 | 35 | $limitDateFormat = 'Y-01-01'; |
36 | 36 | $limitDate = gmdate($limitDateFormat); |
37 | 37 | $resubscriptionOffset = "1 year"; |
@@ -101,7 +101,7 @@ |
||
101 | 101 | $resubscriptionDate = gmdate($limitDateFormat, strtotime($endDate." +$resubscriptionOffset")); |
102 | 102 | $icon = Display::return_icon('students.gif', get_lang('Student')); |
103 | 103 | $canResubscribeFrom = sprintf(get_plugin_lang('CanResubscribeFromX', 'resubscription'), $resubscriptionDate); |
104 | - throw new Exception(Display::label($icon . ' ' . $canResubscribeFrom, "info")); |
|
104 | + throw new Exception(Display::label($icon.' '.$canResubscribeFrom, "info")); |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Limit session resubscription when a Chamilo user is resubscribed to a session |
25 | - * @param HookCreateUserEventInterface $hook The hook |
|
25 | + * @param HookResubscribeEventInterface $hook The hook |
|
26 | 26 | */ |
27 | 27 | public function hookResubscribe(HookResubscribeEventInterface $hook) |
28 | 28 | { |
@@ -5,4 +5,4 @@ |
||
5 | 5 | * @author Imanol Losada Oriol <[email protected]> |
6 | 6 | * @package chamilo.plugin.resubscription |
7 | 7 | */ |
8 | -require_once __DIR__ . '/config.php'; |
|
8 | +require_once __DIR__.'/config.php'; |
@@ -6,4 +6,4 @@ |
||
6 | 6 | * @package chamilo.plugin.resubscription |
7 | 7 | */ |
8 | 8 | |
9 | -require_once api_get_path(SYS_PATH) . 'main/inc/global.inc.php'; |
|
9 | +require_once api_get_path(SYS_PATH).'main/inc/global.inc.php'; |
@@ -5,6 +5,6 @@ |
||
5 | 5 | * @author Imanol Losada Oriol <[email protected]> |
6 | 6 | * @package chamilo.plugin.resubscription |
7 | 7 | */ |
8 | -require_once __DIR__ . '/config.php'; |
|
8 | +require_once __DIR__.'/config.php'; |
|
9 | 9 | |
10 | 10 | Resubscription::create()->uninstall(); |
@@ -5,6 +5,6 @@ |
||
5 | 5 | * @author Imanol Losada Oriol <[email protected]> |
6 | 6 | * @package chamilo.plugin.resubscription |
7 | 7 | */ |
8 | -require_once __DIR__ . '/config.php'; |
|
8 | +require_once __DIR__.'/config.php'; |
|
9 | 9 | |
10 | 10 | Resubscription::create()->install(); |
@@ -17,4 +17,4 @@ |
||
17 | 17 | // The plugin author. |
18 | 18 | $plugin_info['author'] = 'Julio Montoya'; |
19 | 19 | // For bigger icons change this value to addthis_32x32_style |
20 | -$plugin_info['icon_class'] = ''; |
|
20 | +$plugin_info['icon_class'] = ''; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $plugin_info['templates'] = array('template.tpl'); |
24 | 24 | |
25 | 25 | //For bigger icons change this value to addthis_32x32_style |
26 | -$plugin_info['icon_class'] = ''; |
|
26 | +$plugin_info['icon_class'] = ''; |
|
27 | 27 | |
28 | 28 | //To use vertical alignment change this value to |
29 | -$plugin_info['position'] = 'addthis_default_style'; //addthis_vertical_style |
|
29 | +$plugin_info['position'] = 'addthis_default_style'; //addthis_vertical_style |
@@ -18,7 +18,7 @@ |
||
18 | 18 | // the comm |
19 | 19 | $comm_label = api_htmlentities( |
20 | 20 | $plugin_info['settings']['add_cas_login_button_cas_button_comment'] |
21 | - );; |
|
21 | + ); ; |
|
22 | 22 | // URL of the image |
23 | 23 | $url_label = $plugin_info['settings']['add_cas_login_button_cas_image_url']; |
24 | 24 |