format
This commit is contained in:
@ -223,7 +223,9 @@ class NumericScore extends Extension
|
||||
|
||||
public function onSearchTermParse(SearchTermParseEvent $event)
|
||||
{
|
||||
if(is_null($event->term)) return;
|
||||
if (is_null($event->term)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$matches = [];
|
||||
if (preg_match("/^score([:]?<|[:]?>|[:]?<=|[:]?>=|[:|=])(-?\d+)$/i", $event->term, $matches)) {
|
||||
|
@ -6,7 +6,9 @@ class NumericScoreTheme extends Themelet
|
||||
{
|
||||
global $user, $page;
|
||||
$i_image_id = $image->id;
|
||||
if(is_string($image->numeric_score)) $image->numeric_score = (int)$image->numeric_score;
|
||||
if (is_string($image->numeric_score)) {
|
||||
$image->numeric_score = (int)$image->numeric_score;
|
||||
}
|
||||
$i_score = $image->numeric_score;
|
||||
|
||||
$html = "
|
||||
|
Reference in New Issue
Block a user