Skip to content
Permalink
Browse files

Declare function only once

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 26, 2019
1 parent c9d80c9 commit a76431310e1df821c3694b5cfaa441afc41961a9
Showing with 6 additions and 3 deletions.
  1. +3 −2 inc/bgcolor.php
  2. +3 −1 inc/wallpaper.php
@@ -51,8 +51,8 @@
}
function hsv2rgb($hue,$sat,$val) {;
if (!function_exists('hsv2rgb')) {
function hsv2rgb($hue,$sat,$val) {;
$rgb = array(0,0,0);
//calc rgb for 100% SV, go +1 for BR-range
for($i=0;$i<4;$i++) {
@@ -70,6 +70,7 @@ function hsv2rgb($hue,$sat,$val) {;
}
$rgb['html'] = sprintf('%02X%02X%02X', $rgb[0], $rgb[1], $rgb[2]);
return $rgb;
}
}
@@ -193,7 +193,8 @@
</style>";
}
function hsv2rgb($hue,$sat,$val) {;
if (!function_exists('hsv2rgb')) {
function hsv2rgb($hue,$sat,$val) {;
$rgb = array(0,0,0);
//calc rgb for 100% SV, go +1 for BR-range
for($i=0;$i<4;$i++) {
@@ -211,6 +212,7 @@ function hsv2rgb($hue,$sat,$val) {;
}
$rgb['html'] = sprintf('#%02X%02X%02X', $rgb[0], $rgb[1], $rgb[2]);
return $rgb;
}
}
?>

0 comments on commit a764313

Please sign in to comment.
You can’t perform that action at this time.