Skip to content

Commit

Permalink
Minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
MioVisman committed Sep 10, 2023
1 parent 0f4d6dd commit f69dc59
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions app/Models/Transformer/Driver/AbstractDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,16 @@ public function censoringEnd(DB $db): bool
/*************************************************************************/
/* smilies */
/*************************************************************************/
public function smiliesPre(DB $db, int $id): ?bool
{
return null;
}

public function smiliesGet(int &$id): ?array
{
return null;
}

public function smiliesSet(DB $db, array $vars): bool
{
return false !== $db->exec($this->insertQuery, $vars);
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Transformer/Driver/FluxBB/FluxBB.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public function forumsSet(DB $db, array $vars): bool
$mods[$row['id']] = $row['username'];
}

$vars['moderators'] = \json_encode($mods);
$vars['moderators'] = \json_encode($mods, FORK_JSON_ENCODE);
} else {
$vars['moderators'] = '';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public function forumsSet(DB $db, array $vars): bool
$mods[$row['id']] = $row['username'];
}

$vars['moderators'] = \json_encode($mods);
$vars['moderators'] = \json_encode($mods, FORK_JSON_ENCODE);
} else {
$vars['moderators'] = '';
}
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Transformer/Driver/ForkBB/ForkBB.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public function forumsSet(DB $db, array $vars): bool
$mods[$row['id']] = $row['username'];
}

$vars['moderators'] = \json_encode($mods);
$vars['moderators'] = \json_encode($mods, FORK_JSON_ENCODE);
} else {
$vars['moderators'] = '';
}
Expand Down

0 comments on commit f69dc59

Please sign in to comment.