Olivier Massot před 1 rokem
rodič
revize
d079e78e8c
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      ot_admin/Classes/Http/ApiController.php

+ 3 - 3
ot_admin/Classes/Http/ApiController.php

@@ -265,7 +265,7 @@ class ApiController implements LoggerAwareInterface
      * Proceeds to a soft-deletion of the organization's website
      *
      * In the case of a hard deletion, a special header is requested as a confirmation token. The header
-     * shall be named 'CONFIRMATION_TOKEN' and its value shall be DEL-XXXX-YYYYMMDD, where XXXX is the id of
+     * shall be named 'Confirmation-Token' and its value shall be DEL-XXXX-YYYYMMDD, where XXXX is the id of
      * the organization owning the website, and YYYYMMDD is the date of the current day.
      *
      * @param ServerRequest $request
@@ -293,8 +293,8 @@ class ApiController implements LoggerAwareInterface
             " (organization: " . $organizationId . ")"));
 
         $msg = $hard ?
-            "The website with root uid " . $rootUid . " has been soft-deleted. Use the /site/undelete route to restore it." :
-            "The website with root uid " . $rootUid . " has been hard-deleted.";
+            "The website with root uid " . $rootUid . " has been hard-deleted." :
+            "The website with root uid " . $rootUid . " has been soft-deleted. Use the /site/undelete route to restore it.";
 
         return new JsonResponse(
             [