Skip to content
Browse files

MDL-26167 lib/form: minor coding tweaks

  • Loading branch information...
1 parent 436f83f commit dd56fd7c64fb581a364f2e05dbca4156742e9bbb @stronk7 stronk7 committed Apr 18, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/outputcomponents.php
  2. +1 −1 lib/outputrenderers.php
View
2 lib/outputcomponents.php
@@ -57,7 +57,7 @@ public function __construct(stdClass $options) {
'itemid' => 0,
'maxbytes'=>-1,
'maxfiles'=>1,
- 'buttonname'=>false,
+ 'buttonname'=>false
);
foreach ($defaults as $key=>$value) {
if (empty($options->$key)) {
View
2 lib/outputrenderers.php
@@ -1979,7 +1979,7 @@ public function render_file_picker(file_picker $fp) {
} else {
$maxsize = get_string('maxfilesize', 'moodle', display_size($size));
}
- if ($options->buttonname){
+ if ($options->buttonname) {
$buttonname = ' name="' . $options->buttonname . '"';
} else {
$buttonname = '';

0 comments on commit dd56fd7

Please sign in to comment.
Something went wrong with that request. Please try again.