Permalink
Browse files

MDL-26167 lib/form: minor coding tweaks

  • Loading branch information...
1 parent ff6b4cd commit f50a61fb471f0825067e06988c5264f971b1a14f @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
@@ -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)) {
@@ -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 f50a61f

Please sign in to comment.