[core] use ArrayAccess rather than dynamic props for extra columns on the images table

This commit is contained in:
Shish
2024-01-15 17:12:36 +00:00
parent 589ff69eea
commit bbea373c19
22 changed files with 125 additions and 99 deletions

View File

@ -10,10 +10,7 @@ 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;
}
$i_score = $image->numeric_score;
$i_score = (int)$image['numeric_score'];
$html = "
Current Score: $i_score