From 1223c31ea8ebbe3f634598f0004cdb0d50e1b7e1 Mon Sep 17 00:00:00 2001 From: "Skylar \"The Cobra\" Widulski" Date: Sat, 2 Dec 2023 01:04:30 -0500 Subject: [PATCH] intdiv() takes 2 arguments Signed-off-by: Skylar "The Cobra" Widulski --- en/translations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/translations.php b/en/translations.php index 19059e4..9172f7f 100644 --- a/en/translations.php +++ b/en/translations.php @@ -25,7 +25,7 @@ global $langs; $sum = shell_exec('cd /var/www/website; $(($(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "|" | wc -l)+$(diff 2>/dev/null -y --suppress-common-lines en/ '.$tl.'/ | grep "^Only in en/" | awk '."'".'{print $NF}'."'".' | while read -r line; do wc -l < en/"$line";printf "+"; done)0))'); - return "
  • " . $langs[$tl][0] . "(" . $langs[$tl][1] . ", " . $tl . ")" . "
  • \n
    \n" . intdiv(($sum * 100) / $const) . "%

    "; + return "
  • " . $langs[$tl][0] . "(" . $langs[$tl][1] . ", " . $tl . ")" . "
  • \n
    \n" . intdiv(($sum * 100), $const) . "%

    "; } ?>