ParseLinkTemplateEvent, and handlers for text_score, numeric_score and rating
git-svn-id: file:///home/shish/svn/shimmie2/trunk@611 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@ -69,6 +69,10 @@ class NumericScore extends Extension {
|
||||
$sb->add_bool_option("numeric_score_anon", "Allow anonymous votes: ");
|
||||
$event->panel->add_block($sb);
|
||||
}
|
||||
|
||||
if(is_a($event, 'ParseLinkTemplateEvent')) {
|
||||
$event->replace('$score', $event->image->numeric_score);
|
||||
}
|
||||
}
|
||||
|
||||
private function install() {
|
||||
|
Reference in New Issue
Block a user