mirror of
https://github.com/e107inc/e107.git
synced 2025-07-13 11:06:20 +02:00
Set uniqueId default as 'rate'
This commit is contained in:
@ -70,12 +70,7 @@ class rater {
|
||||
|
||||
$template = vartrue($options['template'], " STATUS |RATE|VOTES");
|
||||
|
||||
$identifier = $table.'-'.$id;
|
||||
|
||||
if(!empty($options['uniqueId']))
|
||||
{
|
||||
$identifier .= '-'.$options['uniqueId'];
|
||||
}
|
||||
$identifier = $table.'-'.$id.'-'.vartrue($options['uniqueId'],'rate');
|
||||
|
||||
$TEMPLATE['STATUS'] = " <span class='e-rate-status e-rate-status-{$table}' id='e-rate-{$identifier}' style='display:none'>".$label."</span>";
|
||||
$TEMPLATE['RATE'] = "<div class='e-rate e-rate-{$table}' id='{$identifier}' data-hint=\"{$datahint}\" data-readonly='{$readonly}' data-score='{$score}' data-url='".e_HTTP."rate.php' data-path='{$path}'></div>";
|
||||
|
Reference in New Issue
Block a user