summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-11 02:57:59 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-08-11 02:57:59 -0700
commit8c1fabad5d581e4d4bb87ba9a249317565359e4f (patch)
tree854a2ae3837e9a4781730c5e54bf4bdf380ceb32 /lib
parentfe37a6515e213f6a0f1302a5a0807033205ffee5 (diff)
parent5071f4ad75abec3609506f2363873f95ca71d111 (diff)
downloadrpg-8c1fabad5d581e4d4bb87ba9a249317565359e4f.tar.gz
rpg-8c1fabad5d581e4d4bb87ba9a249317565359e4f.tar.bz2
Merge pull request #279 from splitbrain/FS#2833
Revert "add html5 attributes to email fields of the config manager"
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/config/settings/config.class.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/plugins/config/settings/config.class.php b/lib/plugins/config/settings/config.class.php
index 6d582ad30..6de560128 100644
--- a/lib/plugins/config/settings/config.class.php
+++ b/lib/plugins/config/settings/config.class.php
@@ -728,29 +728,6 @@ if (!class_exists('setting_email')) {
$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);
- }
}
}