From ee70aeaaa2673bbfb9aae85cde10f53a1ca4818b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Sat, 8 Sep 2007 01:48:53 +0000 Subject: [PATCH] make_maintainer_rating_list() should return a string containing the html for the list. Update users of make_maintainer_rating_list() to echo its return value. --- include/testData.php | 2 +- include/util.php | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/include/testData.php b/include/testData.php index f629d24..479e96b 100644 --- a/include/testData.php +++ b/include/testData.php @@ -677,7 +677,7 @@ class testData{ echo '',"\n"; // Rating echo 'Rating',"\n"; - make_maintainer_rating_list("sTestedRating", $this->sTestedRating); + echo make_maintainer_rating_list("sTestedRating", $this->sTestedRating); echo 'Rating definitions',"\n"; // extra comments echo 'Extra comments',"\n"; diff --git a/include/util.php b/include/util.php index 9ac0b32..bc4603f 100644 --- a/include/util.php +++ b/include/util.php @@ -200,22 +200,24 @@ function make_bugzilla_version_list($sVarname, $sSelectedValue) return $sStr; } +// returns a string containing the html for the maintainer rating list function make_maintainer_rating_list($varname, $cvalue) { - - echo "\n"; + $sTxt .= "\n"; $aRating = array("Platinum", "Gold", "Silver", "Bronze", "Garbage"); $iMax = count($aRating); for($i=0; $i < $iMax; $i++) { if($aRating[$i] == $cvalue) - echo "