瀏覽代碼

rev.6 for SendEmail

Visman 5 年之前
父節點
當前提交
7bd8a14d4e
共有 4 個文件被更改,包括 20 次插入2 次删除
  1. 17 0
      app/Models/Pages/Admin/Update.php
  2. 1 1
      app/bootstrap.php
  3. 1 0
      app/config/main.dist.php
  4. 1 1
      readme.md

+ 17 - 0
app/Models/Pages/Admin/Update.php

@@ -492,4 +492,21 @@ class Update extends Admin
 
 
         return null;
         return null;
     }
     }
+
+    /**
+     * rev.5 to rev.6
+     */
+    protected function stageNumber5(array $args): ?int
+    {
+        $coreConfig = new CoreConfig($this->c->DIR_CONFIG . '/' . self::CONFIG_FILE);
+
+        $coreConfig->add(
+            'multiple=>Email',
+            '\\ForkBB\\Models\\Pages\\Email::class',
+            'Report'
+        );
+        $coreConfig->save();
+
+        return null;
+    }
 }
 }

+ 1 - 1
app/bootstrap.php

@@ -42,7 +42,7 @@ if (
 }
 }
 $c->PUBLIC_URL = $c->BASE_URL . $forkPublicPrefix;
 $c->PUBLIC_URL = $c->BASE_URL . $forkPublicPrefix;
 
 
-$c->FORK_REVISION = 5;
+$c->FORK_REVISION = 6;
 $c->START         = $forkStart;
 $c->START         = $forkStart;
 $c->DIR_APP       = __DIR__;
 $c->DIR_APP       = __DIR__;
 $c->DIR_PUBLIC    = $forkPublic;
 $c->DIR_PUBLIC    = $forkPublic;

+ 1 - 0
app/config/main.dist.php

@@ -162,6 +162,7 @@ return [
         'Misc'            => \ForkBB\Models\Pages\Misc::class,
         'Misc'            => \ForkBB\Models\Pages\Misc::class,
         'Moderate'        => \ForkBB\Models\Pages\Moderate::class,
         'Moderate'        => \ForkBB\Models\Pages\Moderate::class,
         'Report'          => \ForkBB\Models\Pages\Report::class,
         'Report'          => \ForkBB\Models\Pages\Report::class,
+        'Email'           => \ForkBB\Models\Pages\Email::class,
         'ProfileView'     => \ForkBB\Models\Pages\Profile\View::class,
         'ProfileView'     => \ForkBB\Models\Pages\Profile\View::class,
         'ProfileEdit'     => \ForkBB\Models\Pages\Profile\Edit::class,
         'ProfileEdit'     => \ForkBB\Models\Pages\Profile\Edit::class,
         'ProfileConfig'   => \ForkBB\Models\Pages\Profile\Config::class,
         'ProfileConfig'   => \ForkBB\Models\Pages\Profile\Config::class,

+ 1 - 1
readme.md

@@ -1,4 +1,4 @@
-# ForkBB rev 5 Pre-Alpha Readme
+# ForkBB rev 6 Pre-Alpha Readme
 
 
 ## About
 ## About