From dbde71003b2e074ad32441718f595033caf74dfd Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 8 Jan 2025 18:22:46 +0100 Subject: [PATCH] better naming --- img/{toproofread.svg => proofread.svg} | 0 img/{fulfilled.svg => ready.svg} | 0 src/My.php | 6 +++--- src/Prepend.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename img/{toproofread.svg => proofread.svg} (100%) rename img/{fulfilled.svg => ready.svg} (100%) diff --git a/img/toproofread.svg b/img/proofread.svg similarity index 100% rename from img/toproofread.svg rename to img/proofread.svg diff --git a/img/fulfilled.svg b/img/ready.svg similarity index 100% rename from img/fulfilled.svg rename to img/ready.svg diff --git a/src/My.php b/src/My.php index 993d5e3..32d79f5 100644 --- a/src/My.php +++ b/src/My.php @@ -21,7 +21,7 @@ use Dotclear\Module\MyPlugin; */ class My extends MyPlugin { - public const POST_READY = -100; - public const POST_REVIEW = -110; - public const POST_DRAFT = -120; + public const POST_READY = -100; + public const POST_PROOFREAD = -110; + public const POST_DRAFT = -120; } diff --git a/src/Prepend.php b/src/Prepend.php index 35498a4..2e10fe7 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -33,10 +33,10 @@ class Prepend extends Process (new Status(My::POST_DRAFT , My::id() . 'draft', 'Draft', 'Draft (>1)', My::fileURL('img/draft.svg'))), ) && App::status()->post()->set( - (new Status(My::POST_REVIEW , My::id() . 'toproofread', 'To proofread', 'To proofread (>1)', My::fileURL('img/toproofread.svg'))), + (new Status(My::POST_PROOFREAD , My::id() . 'proofread', 'To proofread', 'To proofread (>1)', My::fileURL('img/proofread.svg'))), ) && App::status()->post()->set( - (new Status(My::POST_READY , My::id() . 'fulfiled', 'Fulfilled', 'Fulfilled (>1)', My::fileURL('img/fulfilled.svg'))), + (new Status(My::POST_READY , My::id() . 'ready', 'Fulfilled', 'Fulfilled (>1)', My::fileURL('img/ready.svg'))), ); }