From 9786ea94e0e9febf4d4ff1069d2c8a64f2f92f27 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 24 Feb 2008 18:13:05 +0000 Subject: [PATCH] Don't presume output format git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12960 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/options.php | 10 ++++++---- templates/default/options.tpl | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/functions/options.php b/functions/options.php index b42b05b6..9c86550d 100644 --- a/functions/options.php +++ b/functions/options.php @@ -276,10 +276,12 @@ class SquirrelOption { /** * Creates fields on option pages according to option type * - * Function that calls other createWidget* functions. - * @return string html formated option field + * This is the function that calls all other createWidget* functions. + * + * @return string The formated option field + * */ - function createHTMLWidget() { + function createWidget() { global $color; // Use new value if available @@ -335,7 +337,7 @@ class SquirrelOption { } /* Now, return the created widget. */ - return ($result); + return $result; } /** diff --git a/templates/default/options.tpl b/templates/default/options.tpl index 2ec51085..e205bbaa 100644 --- a/templates/default/options.tpl +++ b/templates/default/options.tpl @@ -48,11 +48,11 @@ foreach ($options as $option) { " ".$opt->caption."\n" . " \n" . " \n" . - " ".$opt->createHTMLWidget()."\n" . + " ".$opt->createWidget()."\n" . " \n" . "\n"; } else { - echo $opt->createHTMLWidget(); + echo $opt->createWidget(); } } -- 2.25.1