mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix deprecation notices in PHP 8.2 #2064
This commit is contained in:
parent
8e2c4b3ef9
commit
c07efe7905
7 changed files with 15 additions and 14 deletions
|
|
@ -835,10 +835,10 @@ function handleError($errno, $errstr, $file, $line, $context)
|
|||
function getNumberingPath($no, $size = 3)
|
||||
{
|
||||
$mod = pow(10, $size);
|
||||
$output = sprintf('%0' . $size . 'd/', $no % $mod);
|
||||
$output = sprintf('%0' . $size . 'd/', intval($no % $mod));
|
||||
if($no >= $mod)
|
||||
{
|
||||
$output .= getNumberingPath((int)$no / $mod, $size);
|
||||
$output .= getNumberingPath(intval($no / $mod), $size);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue