Permalink
Browse files

NOBUG: Whitespace and XHTML

  • Loading branch information...
1 parent 752542c commit 0fa3908eb830e82345b9b318794db320088bd92f @stronk7 stronk7 committed Dec 29, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 user/filters/date.php
View
@@ -32,11 +32,11 @@ function setupForm(&$mform) {
$objs[] =& $mform->createElement('checkbox', $this->_name.'_sck', null, get_string('isafter', 'filters'));
$objs[] =& $mform->createElement('date_selector', $this->_name.'_sdt', null);
- $objs[] =& $mform->createElement('static', $this->_name.'_break', null, '<br>');
+ $objs[] =& $mform->createElement('static', $this->_name.'_break', null, '<br/>');
$objs[] =& $mform->createElement('checkbox', $this->_name.'_eck', null, get_string('isbefore', 'filters'));
$objs[] =& $mform->createElement('date_selector', $this->_name.'_edt', null);
$objs[] = & $mform->createElement('checkbox', $this->_name.'_never', null, get_string('includenever', 'filters'));
-
+
$grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false);
$grp->setHelpButton(array('date',$this->_label,'filters'));
@@ -86,7 +86,7 @@ function check_data($formdata) {
} else {
$data['never'] = 0;
}
-
+
return $data;
}
@@ -139,13 +139,13 @@ function get_label($data) {
$a->label = $this->_label;
$a->after = userdate($after);
$a->before = userdate($before);
-
+
if ($never) {
$strnever = ' ('.get_string('includenever', 'filters').')';
} else {
$strnever = '';
}
-
+
if ($after and $before) {
return get_string('datelabelisbetween', 'filters', $a).$strnever;

0 comments on commit 0fa3908

Please sign in to comment.