X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=inline;f=functions%2Foptions.php;h=653dfc0b8c17fe8a6c888bbcde2e54b02ec6c26a;hb=2a50fbd78ecc337335eff7e62e28ae06580d452c;hp=057cb8c86b00801ca1981ec31bb911b506e5935b;hpb=6b4bd11ff9e790990d819c03a04eab069d52e0d6;p=squirrelmail.git diff --git a/functions/options.php b/functions/options.php index 057cb8c8..653dfc0b 100644 --- a/functions/options.php +++ b/functions/options.php @@ -22,7 +22,7 @@ define('SMOPT_TYPE_textarea', 2); define('SMOPT_TYPE_INTEGER', 3); define('SMOPT_TYPE_FLOAT', 4); define('SMOPT_TYPE_BOOLEAN', 5); -define('SMOPT_TYPE_hidden', 6); +define('SMOPT_TYPE_HIDDEN', 6); define('SMOPT_TYPE_COMMENT', 7); /* Define constants for the options refresh levels. */ @@ -97,7 +97,7 @@ class SquirrelOption { } /* Set the default save function. */ - if (($type != SMOPT_TYPE_hidden) && ($type != SMOPT_TYPE_COMMENT)) { + if (($type != SMOPT_TYPE_HIDDEN) && ($type != SMOPT_TYPE_COMMENT)) { $this->save_function = SMOPT_SAVE_DEFAULT; } else { $this->save_function = SMOPT_SAVE_NOOP; @@ -157,7 +157,7 @@ class SquirrelOption { case SMOPT_TYPE_BOOLEAN: $result = $this->createWidget_Boolean(); break; - case SMOPT_TYPE_hidden: + case SMOPT_TYPE_HIDDEN: $result = $this->createWidget_Hidden(); break; case SMOPT_TYPE_COMMENT: @@ -396,7 +396,7 @@ function print_option_groups($option_groups) { /* Print each option in this option group. */ foreach ($next_optgrp['options'] as $option) { - if ($option->type != SMOPT_TYPE_hidden) { + if ($option->type != SMOPT_TYPE_HIDDEN) { echo html_tag( 'tr', "\n". html_tag( 'td', $option->caption . ':', 'right' ,'', 'valign="middle"' ) . html_tag( 'td', $option->createHTMLWidget(), 'left' ) @@ -421,3 +421,4 @@ function OptionSubmit( $name ) { } ?> +)