Permalink
Browse files

MDL-38852 repository_recent: add missing type.

  • Loading branch information...
stronk7 committed Apr 5, 2013
1 parent c5f4080 commit 6481aafbb88d3964eb704236c7dbfd2977165ab4
Showing with 1 addition and 0 deletions.
  1. +1 −0 repository/recent/lib.php
@@ -166,6 +166,7 @@ public static function type_config_form($mform, $classname = 'repository') {
$number = DEFAULT_RECENT_FILES_NUM;
}
$mform->addElement('text', 'recentfilesnumber', get_string('recentfilesnumber', 'repository_recent'));
+ $mform->setType('recentfilesnumber', PARAM_INT);
$mform->setDefault('recentfilesnumber', $number);
}

0 comments on commit 6481aaf

Please sign in to comment.