From 6d587df0bcff0b55fead75ac9583ae85aef7b8ca Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 6 Mar 2026 00:59:20 +0000 Subject: [PATCH] FIX: repair all screens - dashboard, historique, send-process, settings - dashboard/main.html: fix ${echo $earnings} -> {echo $earnings} (Revenue not rendering) - dashboard/main.html: fix {echo split across two lines for affiliateNetworks counter - framework/templating/DefaultImplementation.php: fix [); -> [] syntax error in macro handler - public/scripts/pages/dashboard/main.js: fix deprecated getYear() -> getFullYear() - app/views/settings/main.html: fix 'expended' -> 'expanded' typo in menu behaviour - config/application.json: fix 'expended' -> 'expanded' default value - app/views/production/send-process.html: fix hardcoded /js/ path to use base_url Co-authored-by: Yacineutt --- app/views/dashboard/main.html | 5 ++--- app/views/production/send-process.html | 2 +- app/views/settings/main.html | 2 +- config/application.json | 2 +- framework/templating/DefaultImplementation.php | 2 +- public/scripts/pages/dashboard/main.js | 2 +- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/views/dashboard/main.html b/app/views/dashboard/main.html index d6092f17..1d13fdff 100755 --- a/app/views/dashboard/main.html +++ b/app/views/dashboard/main.html @@ -35,7 +35,7 @@
Clicks
-
${echo $earnings}
+
{echo $earnings}
Revenue
@@ -76,8 +76,7 @@
- {echo - $affiliateNetworks} + {echo $affiliateNetworks}
ACTIVE AFFILIATE NETWORKS
diff --git a/app/views/production/send-process.html b/app/views/production/send-process.html index e821cc99..21669534 100755 --- a/app/views/production/send-process.html +++ b/app/views/production/send-process.html @@ -1273,4 +1273,4 @@ {include includes/modals/send_hover_buttons.html} {include includes/modals/predefined_headers.html} - + diff --git a/app/views/settings/main.html b/app/views/settings/main.html index 08d04a8b..02b44dd6 100755 --- a/app/views/settings/main.html +++ b/app/views/settings/main.html @@ -43,7 +43,7 @@
diff --git a/config/application.json b/config/application.json index cfd060fa..df82334e 100755 --- a/config/application.json +++ b/config/application.json @@ -15,7 +15,7 @@ "pmta_config_type": "default", "tracking_enc_key": "Im2%8Cr64>U^JX>tCT`&Vy+RR2M_nCbT)5NE_;fVBH{q;.y[a{Uq!LD#Tyc>hdop", "bit_shortlinks_token": "", - "sidebar_behaviour": "expended", + "sidebar_behaviour": "expanded", "base_url": "http:\/\/89.167.40.150:5821", "gcloud_bucket_size": "20", "gcloud_object_size": "20", diff --git a/framework/templating/DefaultImplementation.php b/framework/templating/DefaultImplementation.php index bc497fae..42c58989 100755 --- a/framework/templating/DefaultImplementation.php +++ b/framework/templating/DefaultImplementation.php @@ -396,7 +396,7 @@ class DefaultImplementation extends Implementation $args = $arguments["args"]; return "function {$name}({$args}) { - \$_text = [); + \$_text = []; {$content} return implode(\$_text); }"; diff --git a/public/scripts/pages/dashboard/main.js b/public/scripts/pages/dashboard/main.js index a453563b..d6f61937 100755 --- a/public/scripts/pages/dashboard/main.js +++ b/public/scripts/pages/dashboard/main.js @@ -24,7 +24,7 @@ var Dashboard = function() ], function(ec) { - var currentMonthNumDays = new Date(new Date().getYear(),(new Date().getMonth() + 1), 0).getDate(); + var currentMonthNumDays = new Date(new Date().getFullYear(),(new Date().getMonth() + 1), 0).getDate(); var days = []; for (var i = 0; i < currentMonthNumDays; i++)