Fix invalid templates not showing up in Stats correctly

This commit is contained in:
Squidly271 2023-02-19 07:35:37 -05:00
parent 258e80ce64
commit 998b02068f
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -17,7 +17,7 @@ fbd7122dbf5312c30d164312aa6c13e4 ./scripts/installMultiPlugin.php
5846421e95b475e1156c3f68164ccc4f ./scripts/languageInstall.sh 5846421e95b475e1156c3f68164ccc4f ./scripts/languageInstall.sh
73ea7f95eb7dd44beccabc0eef5b30e9 ./scripts/notices.php 73ea7f95eb7dd44beccabc0eef5b30e9 ./scripts/notices.php
ed42a35b3524b55e2024cdd56a795733 ./scripts/pluginInstall.php ed42a35b3524b55e2024cdd56a795733 ./scripts/pluginInstall.php
c337da65783addaee1e6bf6c50e6f35b ./scripts/showStatistics.php 3888e6583182d12a6e993488f0bbbae0 ./scripts/showStatistics.php
4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh 4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh
5c088a7cf82229cb64edfd4c415a84a0 ./scripts/updatePluginSupport.php 5c088a7cf82229cb64edfd4c415a84a0 ./scripts/updatePluginSupport.php
230290ceb59b21a3fae7fa7674d5d89d ./skins/Narrow/css.php 230290ceb59b21a3fae7fa7674d5d89d ./skins/Narrow/css.php

View File

@ -62,7 +62,7 @@ switch ($_GET['arg1']) {
echo "</table></tt>"; echo "</table></tt>";
break; break;
case 'Invalid': case 'Invalid':
$moderation = @file_get_contents($caPaths['invalidXML_txt']); $moderation = json_encode(json_decode(@file_get_contents($caPaths['invalidXML_txt'])),JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
if ( ! $moderation ) { if ( ! $moderation ) {
echo "<br><br><div class='ca_center'><span class='ca_bold'>".tr("No invalid templates found")."</span></div>"; echo "<br><br><div class='ca_center'><span class='ca_bold'>".tr("No invalid templates found")."</span></div>";
return; return;