projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82bfd76
)
Simplify
author
Jan Schneider
<jan@horde.org>
Wed, 3 Feb 2010 00:20:14 +0000
(
01:20
+0100)
committer
Jan Schneider
<jan@horde.org>
Wed, 3 Feb 2010 00:20:14 +0000
(
01:20
+0100)
framework/Ui/lib/Horde/Ui/TagCloud.php
patch
|
blob
|
history
diff --git
a/framework/Ui/lib/Horde/Ui/TagCloud.php
b/framework/Ui/lib/Horde/Ui/TagCloud.php
index
5446f15
..
29bc44c
100644
(file)
--- a/
framework/Ui/lib/Horde/Ui/TagCloud.php
+++ b/
framework/Ui/lib/Horde/Ui/TagCloud.php
@@
-88,10
+88,7
@@
class Horde_Ui_TagCloud
public function __construct($basefontsize = 24, $fontsizerange = 12)
{
$this->basefontsize = $basefontsize;
- $this->minfontsize = ($this->basefontsize - $this->fontsizerange > 0)
- ? $this->basefontsize - $this->fontsizerange
- : 0;
- $this->maxfontsize = $this->basefontsize + $this->fontsizerange;
+ $this->minfontsize = max($this->basefontsize - $this->fontsizerange, 0);
}
/**