@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
24 | 24 | */ |
25 | 25 | |
26 | -require(__DIR__.'/../../config.php'); |
|
27 | -require_once(__DIR__.'/locallib.php'); |
|
28 | -require_once(__DIR__.'/brokerlib.php'); |
|
26 | +require(__DIR__ . '/../../config.php'); |
|
27 | +require_once(__DIR__ . '/locallib.php'); |
|
28 | +require_once(__DIR__ . '/brokerlib.php'); |
|
29 | 29 | |
30 | 30 | global $PAGE, $USER, $CFG, $SESSION, $DB; |
31 | 31 | |
@@ -41,13 +41,13 @@ discard block |
||
41 | 41 | require_login(null, true); |
42 | 42 | |
43 | 43 | if (empty($params['action'])) { |
44 | - header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included'); |
|
44 | + header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included'); |
|
45 | 45 | return; |
46 | 46 | } |
47 | 47 | |
48 | 48 | $error = bigbluebuttonbn_broker_validate_parameters($params); |
49 | 49 | if (!empty($error)) { |
50 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
50 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
51 | 51 | return; |
52 | 52 | } |
53 | 53 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | echo $completionvalidate; |
127 | 127 | return; |
128 | 128 | } |
129 | - header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist'); |
|
129 | + header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist'); |
|
130 | 130 | } catch (Exception $e) { |
131 | - header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage()); |
|
131 | + header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage()); |
|
132 | 132 | } |