mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch '42170-26' of git://github.com/samhemelryk/moodle
This commit is contained in:
commit
c5df0a63bc
@ -105,6 +105,15 @@ class tool_behat_renderer extends plugin_renderer_base {
|
||||
$stepsdefinitions
|
||||
);
|
||||
|
||||
// Replace simple OR options.
|
||||
$regex = '#\(\?P<[^>]+>([^\)|]+\|[^\)]+)\)#';
|
||||
$stepsdefinitions = preg_replace_callback($regex,
|
||||
function($matches){
|
||||
return html_writer::select(explode('|', $matches[1]), uniqid());
|
||||
},
|
||||
$stepsdefinitions
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
// Steps definitions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user