Browse Source

rev.30 for poll

Visman 4 năm trước cách đây
mục cha
commit
c5e0be935f
3 tập tin đã thay đổi với 20 bổ sung1 xóa
  1. 18 0
      app/Models/Pages/Admin/Update.php
  2. 1 1
      app/bootstrap.php
  3. 1 0
      app/config/main.dist.php

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

@@ -1175,4 +1175,22 @@ class Update extends Admin
 
         return null;
     }
+
+    /**
+     * rev.29 to rev.30
+     */
+    protected function stageNumber29(array $args): ?int
+    {
+        $coreConfig = new CoreConfig($this->c->DIR_CONFIG . '/' . self::CONFIG_FILE);
+
+        $coreConfig->add(
+            'multiple=>Poll',
+            '\\ForkBB\\Models\\Pages\\Poll::class',
+            'Feed'
+        );
+
+        $coreConfig->save();
+
+        return null;
+   }
 }

+ 1 - 1
app/bootstrap.php

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

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

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