Skip to content

Commit

Permalink
Merge pull request #279 from splitbrain/FS#2833
Browse files Browse the repository at this point in the history
Revert "add html5 attributes to email fields of the config manager"
  • Loading branch information
splitbrain committed Aug 11, 2013
2 parents fe37a65 + 5071f4a commit 8c1faba
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions lib/plugins/config/settings/config.class.php
Expand Up @@ -728,29 +728,6 @@ function update($input) {
$this->_local = $input;
return true;
}
function html(&$plugin, $echo=false) {
$value = '';
$disable = '';

if ($this->is_protected()) {
$value = $this->_protected;
$disable = 'disabled="disabled"';
} else {
if ($echo && $this->_error) {
$value = $this->_input;
} else {
$value = is_null($this->_local) ? $this->_default : $this->_local;
}
}

$multiple = $this->_multiple ? 'multiple="multiple"' : '';
$key = htmlspecialchars($this->_key);
$value = htmlspecialchars($value);

$label = '<label for="config___'.$key.'">'.$this->prompt($plugin).'</label>';
$input = '<input id="config___'.$key.'" name="config['.$key.']" type="email" class="edit" value="'.$value.'" '.$multiple.' '.$disable.'/>';
return array($label,$input);
}
}
}

Expand Down

0 comments on commit 8c1faba

Please sign in to comment.