|
@@ -254,13 +254,16 @@ class ImsLtiTool
|
|
|
*/
|
|
|
public function parseCustomParams()
|
|
|
{
|
|
|
- $strings = explode($this->customParams, "\n");
|
|
|
- $pairs = explode('=', $strings);
|
|
|
+ $params = [];
|
|
|
+ $strings = explode("\n", $this->customParams);
|
|
|
|
|
|
- return [
|
|
|
- 'key' => 'custom_'.$pairs[0],
|
|
|
- 'value' => $pairs[1]
|
|
|
- ];
|
|
|
+ foreach ($strings as $string) {
|
|
|
+ $pairs = explode('=', $string);
|
|
|
+
|
|
|
+ $params['custom_'.$pairs[0]] = $pairs[1];
|
|
|
+ }
|
|
|
+
|
|
|
+ return $params;
|
|
|
}
|
|
|
|
|
|
/**
|