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

This commit is contained in:
Sam Hemelryk
2014-11-17 10:34:09 +13:00
+3 -1
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);
}
/**