From 1afc9393a4cdbec6032d0a71a48e354584c4439f Mon Sep 17 00:00:00 2001 From: colorlink Date: Fri, 16 Oct 2026 04:53:24 +0000 Subject: [PATCH] Add MOYASAR_WC_VERSION to catalog label map (idempotent) Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Q8t9GEyyLZbUQu26na1JQg --- scripts/patch-moyasar-label.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/patch-moyasar-label.php diff --git a/scripts/patch-moyasar-label.php b/scripts/patch-moyasar-label.php new file mode 100644 index 0000000..a304764 --- /dev/null +++ b/scripts/patch-moyasar-label.php @@ -0,0 +1,17 @@ + ['Moyasar', 'moyasar'],"; +if (strpos($src, $anchor) === false) { fwrite(STDERR, "moyasar anchor not found\n"); exit(2); } +$add = $anchor . "\n 'MOYASAR_WC_VERSION' => ['Moyasar', 'moyasar'],"; +$src = str_replace($anchor, $add, $src); +if (file_put_contents($admin, $src) === false) { fwrite(STDERR, "write failed\n"); exit(3); } +echo "moyasar label added\n";