Skip to content

Commit

Permalink
Merge branch 'MDL-44657-master' of git://github.com/FMCorz/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Nov 16, 2014
2 parents c106341 + 68ef378 commit 6d97620
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/formslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ function moodleform($action=null, $customdata=null, $method='post', $target='',
* @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);
}

/**
Expand Down

0 comments on commit 6d97620

Please sign in to comment.