Skip to content

Commit

Permalink
Merge branch 'wip-MDL-44686-master' of git://github.com/marinaglancy/…
Browse files Browse the repository at this point in the history
…moodle
  • Loading branch information
danpoltawski committed Mar 25, 2014
2 parents eb4606a + a2c271d commit 1696ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tests/behat/behat_hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,9 @@ protected function get_faildump_filename(StepEvent $event, $filetype) {
$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);
}
Expand Down

0 comments on commit 1696ee8

Please sign in to comment.