git-svn-id: file:///home/shish/svn/shimmie2/trunk@785 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-04-08 16:58:04 +00:00
parent c736f6b7b6
commit b28c77b32d

View file

@ -41,9 +41,10 @@ class NumericScore extends Extension {
if(is_a($event, 'ImageInfoSetEvent')) {
global $user;
$char = $_POST['numeric_score'];
$score = 0;
if($char == "u") $score = 1;
else if($char == "d") $score = -1;
send_event(new NumericScoreSetEvent($event->image_id, $user, $score));
if($score != 0) send_event(new NumericScoreSetEvent($event->image_id, $user, $score));
}
if(is_a($event, 'NumericScoreSetEvent')) {