Skip to content

Commit

Permalink
Merge pull request #124 from BrewCurious/master
Browse files Browse the repository at this point in the history
Adding function parameter to match the TimeField declaration
  • Loading branch information
Aaron Carlino authored Jan 23, 2017
2 parents c12b7b9 + a45f6fd commit fe085a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/CalendarTimeField.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

class CalendarTimeField extends TimeField {
function Field() {

function Field($properties = array()) {
$attributes = array(
'type' => 'text',
'class' => 'text' . ($this->extraClass() ? $this->extraClass() : ''),
Expand All @@ -11,11 +11,11 @@ function Field() {
'value' => $this->attrValue(),
'tabindex' => $this->getTabIndex(),
'maxlength' => ($this->maxLength) ? $this->maxLength : null,
'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null
'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null
);

if($this->disabled) $attributes['disabled'] = 'disabled';

return $this->createTag('input', $attributes);
}
}
}

0 comments on commit fe085a6

Please sign in to comment.