Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38852 repository_recent: add missing type.

  • Loading branch information...
commit 6481aafbb88d3964eb704236c7dbfd2977165ab4 1 parent c5f4080
@stronk7 stronk7 authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  repository/recent/lib.php
View
1  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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.