official templates weren't displaying errors

This commit is contained in:
Squidly271 2021-11-13 10:45:10 -05:00
parent 82a4fb7ad7
commit 02b47a0d6c
4 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,8 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "community.applications">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2021.11.13">
<!ENTITY md5 "52355131bd68892a2c783c4d884cd721">
<!ENTITY version "2021.11.13a">
<!ENTITY md5 "290619e1e3d19a3b909486be94f3d312">
<!ENTITY launch "Apps">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/community.applications">

View File

@ -22,4 +22,4 @@ b398273cf7daa62ab00d2de2336ca25f ./README.md
2bd671daecaf01549f8cc0202cb184b3 ./scripts/updatePluginSupport.php
29aec30281e6b795644d4570c10c21f1 ./skins/Narrow/css.php
cfa1511913f794c8c5980460dfcdf049 ./skins/Narrow/skin.html
7ec1bea9c8cf30ed0e7ad21df8c5f22c ./skins/Narrow/skin.php
65cfeaf8fb648d2651d5403e7e83dfb0 ./skins/Narrow/skin.php

View File

@ -1294,9 +1294,9 @@ function displayPopup($template) {
";
}
$moderation = readJsonFile($caPaths['statistics']);
if ( $moderation['fixedTemplates'][$Repo][$Repository] ) {
if ( $moderation['fixedTemplates'][$Repo][str_replace("library/","",$Repository)] ) {
$card .= "<div class='templateErrors'>".tr("Template Errors")."</div>";
foreach ($moderation['fixedTemplates'][$Repo][$Repository] as $error) {
foreach ($moderation['fixedTemplates'][$Repo][str_replace("library/","",$Repository)] as $error) {
$card .= "<li class='templateErrorsList'>$error</li>";
}
}