rev.30 for poll

This commit is contained in:
Visman 2020-11-22 18:22:05 +07:00
parent 01a9383a39
commit c5e0be935f
3 changed files with 20 additions and 1 deletions

View file

@ -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;
}
}

View file

@ -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;

View file

@ -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,