@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $strings['VideoConferenceAddedToTheCalendar'] = "Videoconference added to the calendar"; |
24 | 24 | $strings['VideoConferenceAddedToTheLinkTool'] = "Videoconference added to the link tool"; |
25 | 25 | |
26 | -$strings['GoToTheVideoConference'] = "Go to the videoconference"; |
|
26 | +$strings['GoToTheVideoConference'] = "Go to the videoconference"; |
|
27 | 27 | |
28 | 28 | $strings['Records'] = "Recording"; |
29 | 29 | $strings['Meeting'] = "Meeting"; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $strings['EnterConference'] = "Enter the videoconference"; |
35 | 35 | $strings['RecordList'] = "Recording list"; |
36 | 36 | $strings['ServerIsNotRunning'] = "Videoconference server is not running"; |
37 | -$strings['ServerIsNotConfigured'] = "Videoconference server is not configured"; |
|
37 | +$strings['ServerIsNotConfigured'] = "Videoconference server is not configured"; |
|
38 | 38 | |
39 | 39 | $strings['XUsersOnLine'] = "%s user(s) online"; |
40 | 40 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $strings['VideoConferenceAddedToTheCalendar'] = "Vidéoconférence ajoutée au calendrier"; |
17 | 17 | $strings['VideoConferenceAddedToTheLinkTool'] = "Vidéoconférence ajoutée comme lien. Vous pouvez éditer et publier le lien sur la page principale du cours depuis l'outil liens."; |
18 | 18 | |
19 | -$strings['GoToTheVideoConference'] = "Entrer dans la salle de conférence"; |
|
19 | +$strings['GoToTheVideoConference'] = "Entrer dans la salle de conférence"; |
|
20 | 20 | |
21 | 21 | $strings['Records'] = "Enregistrement"; |
22 | 22 | $strings['Meeting'] = "Salle de conférence"; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $strings['EnterConference'] = "Entrer dans la salle de conférence"; |
28 | 28 | $strings['RecordList'] = "Liste des enregistrements"; |
29 | 29 | $strings['ServerIsNotRunning'] = "Le serveur de vidéoconférence ne fonctionne pas"; |
30 | -$strings['ServerIsNotConfigured'] = "Le serveur de vidéoconférence n'est pas configuré correctement"; |
|
30 | +$strings['ServerIsNotConfigured'] = "Le serveur de vidéoconférence n'est pas configuré correctement"; |
|
31 | 31 | |
32 | 32 | $strings['XUsersOnLine'] = "%s utilisateurs dans la salle"; |
33 | 33 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $strings['VideoConferenceAddedToTheCalendar'] = "Videoconferencia añadida al calendario"; |
17 | 17 | $strings['VideoConferenceAddedToTheLinkTool'] = "Videoconferencia añadida como enlace. Puede editar y publicar el enlace en la página principal del curso desde la herramienta de enlace."; |
18 | 18 | |
19 | -$strings['GoToTheVideoConference'] = "Ir a la videoconferencia"; |
|
19 | +$strings['GoToTheVideoConference'] = "Ir a la videoconferencia"; |
|
20 | 20 | |
21 | 21 | $strings['Records'] = "Grabación"; |
22 | 22 | $strings['Meeting'] = "Sala de conferencia"; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $strings['EnterConference'] = "Entrar a la videoconferencia"; |
28 | 28 | $strings['RecordList'] = "Lista de grabaciones"; |
29 | 29 | $strings['ServerIsNotRunning'] = "El servidor de videoconferencia no está funcionando"; |
30 | -$strings['ServerIsNotConfigured'] = "El servidor de videoconferencia no está configurado correctamente"; |
|
30 | +$strings['ServerIsNotConfigured'] = "El servidor de videoconferencia no está configurado correctamente"; |
|
31 | 31 | |
32 | 32 | $strings['XUsersOnLine'] = "%s usuario(s) en la sala"; |
33 | 33 |
@@ -19,6 +19,6 @@ |
||
19 | 19 | { |
20 | 20 | $this->_user = CONFIG_OPENMEETINGS_USER; |
21 | 21 | $this->_pass = CONFIG_OPENMEETINGS_PASS; |
22 | - $this->_serverBaseUrl = CONFIG_OPENMEETINGS_SERVER_URL; |
|
22 | + $this->_serverBaseUrl = CONFIG_OPENMEETINGS_SERVER_URL; |
|
23 | 23 | } |
24 | 24 | } |
@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | global $_configuration; |
50 | 50 | $this->name = 'C'.api_get_real_course_id().'-'.api_get_session_id(); |
51 | 51 | $accessUrl = api_get_access_url($_configuration['access_url']); |
52 | - $this->externalRoomType = substr($accessUrl['url'], strpos($accessUrl['url'],'://')+3,-1); |
|
52 | + $this->externalRoomType = substr($accessUrl['url'], strpos($accessUrl['url'], '://') + 3, -1); |
|
53 | 53 | if (strcmp($this->externalRoomType, 'localhost') == 0) { |
54 | - $this->externalRoomType = substr(api_get_path(WEB_PATH), strpos(api_get_path(WEB_PATH),'://')+3, -1); |
|
54 | + $this->externalRoomType = substr(api_get_path(WEB_PATH), strpos(api_get_path(WEB_PATH), '://') + 3, -1); |
|
55 | 55 | } |
56 | 56 | $this->externalRoomType = 'chamilolms.'.$this->externalRoomType; |
57 | 57 | } |
@@ -110,6 +110,6 @@ discard block |
||
110 | 110 | if (!isset($this->$attribute)) { |
111 | 111 | return $voidReturn; |
112 | 112 | } |
113 | - return $this->$attribute?'true':'false'; |
|
113 | + return $this->$attribute ? 'true' : 'false'; |
|
114 | 114 | } |
115 | 115 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * @package chamilo.plugin.kannelsms |
8 | 8 | * @author Imanol Losada <[email protected]> |
9 | 9 | */ |
10 | -require_once __DIR__ . '/../../main/inc/global.inc.php'; |
|
10 | +require_once __DIR__.'/../../main/inc/global.inc.php'; |
|
11 | 11 | |
12 | 12 | require_once 'lib/kannelsms.lib.php'; |
13 | 13 | require_once 'vendor/kannelsms_api.php'; |
@@ -20,8 +20,8 @@ |
||
20 | 20 | */ |
21 | 21 | class KannelException extends \Exception { |
22 | 22 | |
23 | - public function __construct( $message, $code = 0 ) { |
|
23 | + public function __construct($message, $code = 0) { |
|
24 | 24 | // make sure everything is assigned properly |
25 | - parent::__construct( $message, $code ); |
|
25 | + parent::__construct($message, $code); |
|
26 | 26 | } |
27 | 27 | } |
@@ -75,14 +75,13 @@ |
||
75 | 75 | $trimmedKey = trim(CONFIG_SECURITY_API_KEY); |
76 | 76 | if (!empty($trimmedKey)) { |
77 | 77 | $message = array( |
78 | - "to" => array_key_exists("mobilePhoneNumber",$additionalParameters) ? |
|
79 | - $additionalParameters['mobilePhoneNumber'] : |
|
80 | - $this->getMobilePhoneNumberById($additionalParameters['userId']), |
|
78 | + "to" => array_key_exists("mobilePhoneNumber", $additionalParameters) ? |
|
79 | + $additionalParameters['mobilePhoneNumber'] : $this->getMobilePhoneNumberById($additionalParameters['userId']), |
|
81 | 80 | "message" => $this->getSms($additionalParameters) |
82 | 81 | ); |
83 | 82 | |
84 | 83 | if (!empty($message['message'])) { |
85 | - if(extension_loaded('curl')) { |
|
84 | + if (extension_loaded('curl')) { |
|
86 | 85 | $url = $this->hostAddress.'?username='. |
87 | 86 | $this->username.'&password='.$this->password.'&from='. |
88 | 87 | $this->from.'&to='.$message['to'].'&msg='.urlencode($message['message']); |
@@ -9,6 +9,6 @@ |
||
9 | 9 | * @author Laurent Opprecht |
10 | 10 | */ |
11 | 11 | |
12 | -require_once dirname(__FILE__) . '/lib/rss_plugin.class.php'; |
|
12 | +require_once dirname(__FILE__).'/lib/rss_plugin.class.php'; |
|
13 | 13 | |
14 | 14 | $plugin_info = RssPlugin::create()->get_info(); |