|
@@ -165,7 +165,10 @@ class Comment extends AbstractModel
|
|
|
if ($icon != 'none') {
|
|
if ($icon != 'none') {
|
|
|
$pngdata = '';
|
|
$pngdata = '';
|
|
|
$hmac = TrafficLimiter::getHash();
|
|
$hmac = TrafficLimiter::getHash();
|
|
|
- if ($icon == 'jdenticon') {
|
|
|
|
|
|
|
+ if ($icon == 'identicon') {
|
|
|
|
|
+ $identicon = new Identicon();
|
|
|
|
|
+ $pngdata = $identicon->getImageDataUri($hmac, 16);
|
|
|
|
|
+ } elseif ($icon == 'jdenticon') {
|
|
|
$jdenticon = new Jdenticon(array(
|
|
$jdenticon = new Jdenticon(array(
|
|
|
'hash' => $hmac,
|
|
'hash' => $hmac,
|
|
|
'size' => 16,
|
|
'size' => 16,
|
|
@@ -175,9 +178,6 @@ class Comment extends AbstractModel
|
|
|
),
|
|
),
|
|
|
));
|
|
));
|
|
|
$pngdata = $jdenticon->getImageDataUri('png');
|
|
$pngdata = $jdenticon->getImageDataUri('png');
|
|
|
- } elseif ($icon == 'identicon') {
|
|
|
|
|
- $identicon = new Identicon();
|
|
|
|
|
- $pngdata = $identicon->getImageDataUri($hmac, 16);
|
|
|
|
|
} elseif ($icon == 'vizhash') {
|
|
} elseif ($icon == 'vizhash') {
|
|
|
$vh = new Vizhash16x16();
|
|
$vh = new Vizhash16x16();
|
|
|
$pngdata = 'data:image/png;base64,' . base64_encode(
|
|
$pngdata = 'data:image/png;base64,' . base64_encode(
|