فهرست منبع

fix the ot:site:setdomain command

Olivier Massot 2 سال پیش
والد
کامیت
75f973ac6b
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      ot_admin/Classes/Command/SetSiteDomainCommand.php
  2. 1 1
      ot_admin/Classes/Controller/SiteController.php

+ 1 - 1
ot_admin/Classes/Command/SetSiteDomainCommand.php

@@ -31,7 +31,7 @@ class SetSiteDomainCommand extends Command
     {
         $this
             ->setName("ot:site:setdomain")
-            ->setDescription("Set a new domain for the organization website")
+            ->setDescription("Set a new custom domain for the organization website")
             ->setHelp("Set a new domain for the organization website. A new redirection will " .
                            "be added from the existing domain to the new one. Use the --no-redirection option " .
                            "to prevent this.")

+ 1 - 1
ot_admin/Classes/Controller/SiteController.php

@@ -1434,7 +1434,7 @@ class SiteController extends ActionController
             throw new RuntimeException('The new domain should be different of the current one');
         }
 
-        $this->writeConfigFile($organizationId, $rootUid, $newDomain);
+        $this->writeConfigFile($rootUid, $newDomain);
 
         if ($redirect) {
             // Add the redirection