Merge branch 'MDL-44657-master' of git://github.com/FMCorz/moodle

This commit is contained in:
Sam Hemelryk 2014-11-17 09:34:25 +13:00
commit 6d97620481

View File

@ -211,7 +211,9 @@ abstract class moodleform {
* @return string form identifier.
*/
protected function get_form_identifier() {
return get_class($this);
$class = get_class($this);
return preg_replace('/[^a-z0-9_]/i', '_', $class);
}
/**