瀏覽代碼

Typos (#2874)

* expiriation -> expiration
* explaination -> explanation
* Fix DnsDomain model incorrectly called MailDomain
Alec Rust 3 年之前
父節點
當前提交
58529ea724
共有 4 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      web/add/dns/index.php
  2. 1 1
      web/edit/dns/index.php
  3. 2 2
      web/inc/main.php
  4. 1 1
      web/src/app/Models/DnsDomain.php

+ 1 - 1
web/add/dns/index.php

@@ -93,7 +93,7 @@ if (!empty($_POST['ok'])) {
         unset($output);
     }
 
-    // Set expiriation date
+    // Set expiration date
     if (empty($_SESSION['error_msg'])) {
         if ((!empty($_POST['v_exp'])) && ($_POST['v_exp'] != date('Y-m-d', strtotime('+1 year')))) {
             $v_exp = quoteshellarg($_POST['v_exp']);

+ 1 - 1
web/edit/dns/index.php

@@ -116,7 +116,7 @@ if ((!empty($_POST['save'])) && (!empty($_GET['domain'])) && (empty($_GET['recor
         $restart_dns = 'yes';
     }
 
-    // Change expiriation date
+    // Change expiration date
     if (($v_exp != $_POST['v_exp']) && (empty($_SESSION['error_msg']))) {
         $v_exp = quoteshellarg($_POST['v_exp']);
         exec(HESTIA_CMD."v-change-dns-domain-exp ".$user." ".$v_domain." ".$v_exp." 'no'", $output, $return_var);

+ 2 - 2
web/inc/main.php

@@ -279,7 +279,7 @@ function top_panel($user, $TAB)
     if (!isset($_SESSION['look'])) {
         $_SESSION['userSortOrder'] = $panel[$user]['PREF_UI_SORT'];
     }
-    
+
     // Set home location URLs
     if (($_SESSION['userContext'] === 'admin') && (empty($_SESSION['look']))) {
         // Display users list for administrators unless they are impersonating a user account
@@ -462,7 +462,7 @@ function list_timezones()
 /**
  * A function that tells is it MySQL installed on the system, or it is MariaDB.
  *
- * Explaination:
+ * Explanation:
  * $_SESSION['DB_SYSTEM'] has 'mysql' value even if MariaDB is installed, so you can't figure out is it really MySQL or it's MariaDB.
  * So, this function will make it clear.
  *

+ 1 - 1
web/src/app/Models/DnsDomain.php

@@ -4,7 +4,7 @@ declare(strict_types=1);
 
 namespace Hestia\Models;
 
-class MailDomain extends Model
+class DnsDomain extends Model
 {
 
 }