@@ -26,9 +26,9 @@ discard block |
||
| 26 | 26 | define('READ_ONLY_SESSION', true); |
| 27 | 27 | define('AJAX_SCRIPT', true); |
| 28 | 28 | |
| 29 | -require(__DIR__.'/../../config.php'); |
|
| 30 | -require_once(__DIR__.'/locallib.php'); |
|
| 31 | -require_once(__DIR__.'/brokerlib.php'); |
|
| 29 | +require(__DIR__ . '/../../config.php'); |
|
| 30 | +require_once(__DIR__ . '/locallib.php'); |
|
| 31 | +require_once(__DIR__ . '/brokerlib.php'); |
|
| 32 | 32 | |
| 33 | 33 | global $PAGE, $USER, $CFG, $SESSION, $DB; |
| 34 | 34 | |
@@ -45,13 +45,13 @@ discard block |
||
| 45 | 45 | require_sesskey(); |
| 46 | 46 | |
| 47 | 47 | if (empty($params['action'])) { |
| 48 | - header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included'); |
|
| 48 | + header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included'); |
|
| 49 | 49 | return; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | $error = bigbluebuttonbn_broker_validate_parameters($params); |
| 53 | 53 | if (!empty($error)) { |
| 54 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
| 54 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
| 55 | 55 | return; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | echo $completionvalidate; |
| 137 | 137 | return; |
| 138 | 138 | } |
| 139 | - header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist'); |
|
| 139 | + header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist'); |
|
| 140 | 140 | } catch (Exception $e) { |
| 141 | - header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage()); |
|
| 141 | + header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage()); |
|
| 142 | 142 | } |