mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'wip-MDL-44686-master' of git://github.com/marinaglancy/moodle
This commit is contained in:
commit
1696ee8050
@ -383,9 +383,9 @@ class behat_hooks extends behat_base {
|
||||
$filename = $event->getStep()->getParent()->getTitle() . '_' . $event->getStep()->getText();
|
||||
$filename = preg_replace('/([^a-zA-Z0-9\_]+)/', '-', $filename);
|
||||
|
||||
// File name limited to 256 characters. Leaving 4 chars for the file
|
||||
// File name limited to 255 characters. Leaving 4 chars for the file
|
||||
// extension as we allow .png for images and .html for DOM contents.
|
||||
$filename = substr($filename, 0, 251) . '.' . $filetype;
|
||||
$filename = substr($filename, 0, 250) . '.' . $filetype;
|
||||
|
||||
return array($dir, $filename);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user