|
@@ -153,7 +153,7 @@ |
|
|
block discarded – undo |
|
153
|
153
|
fseek($file, 0); |
|
154
|
154
|
|
|
155
|
155
|
// url needs some variable data, so we'll parse it in |
|
156
|
|
- $api = preg_replace_callback('/\{([a-z0-9]+)\}/i', function ($match) use ($data) { |
|
|
156
|
+ $api = preg_replace_callback('/\{([a-z0-9]+)\}/i', function($match) use ($data) { |
|
157
|
157
|
return isset($data[$match[1]]) ? $data[$match[1]] : $match[0]; |
|
158
|
158
|
}, $api); |
|
159
|
159
|
// if parts of url are now empty, just omit them (e.g. branch could be) |
Please login to merge, or discard this patch.