rev.4 for main.php update
This commit is contained in:
parent
97b544f851
commit
7802530f3d
4 changed files with 24 additions and 3 deletions
|
@ -446,4 +446,25 @@ class Update extends Admin
|
|||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* rev.3 to rev.4
|
||||
*/
|
||||
protected function stageNumber3(array $args): ?int
|
||||
{
|
||||
$coreConfig = new CoreConfig($this->c->DIR_CONFIG . '/' . self::CONFIG_FILE);
|
||||
|
||||
$result = $coreConfig->delete(
|
||||
'multiple=>AdminUsersRecalculate',
|
||||
);
|
||||
|
||||
$coreConfig->add(
|
||||
'multiple=>UserManagerUpdateLoginIpCache',
|
||||
'\\ForkBB\\Models\\User\\UpdateLoginIpCache::class',
|
||||
'UserManagerUpdateCountTopics'
|
||||
);
|
||||
$coreConfig->save();
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ if (
|
|||
}
|
||||
$c->PUBLIC_URL = $c->BASE_URL . $forkPublicPrefix;
|
||||
|
||||
$c->FORK_REVISION = 3;
|
||||
$c->FORK_REVISION = 4;
|
||||
$c->START = $forkStart;
|
||||
$c->DIR_APP = __DIR__;
|
||||
$c->DIR_PUBLIC = $forkPublic;
|
||||
|
|
|
@ -183,7 +183,6 @@ return [
|
|||
'AdminUsersAction' => \ForkBB\Models\Pages\Admin\Users\Action::class,
|
||||
'AdminUsersPromote' => \ForkBB\Models\Pages\Admin\Users\Promote::class,
|
||||
'AdminUsersNew' => \ForkBB\Models\Pages\Admin\Users\NewUser::class,
|
||||
'AdminUsersRecalculate' => \ForkBB\Models\Pages\Admin\Users\Recalculate::class,
|
||||
'AdminHost' => \ForkBB\Models\Pages\Admin\Host::class,
|
||||
'AdminBans' => \ForkBB\Models\Pages\Admin\Bans::class,
|
||||
'AdminReports' => \ForkBB\Models\Pages\Admin\Reports::class,
|
||||
|
@ -227,6 +226,7 @@ return [
|
|||
'UserManagerUpdateLastVisit' => \ForkBB\Models\User\UpdateLastVisit::class,
|
||||
'UserManagerUpdateCountPosts' => \ForkBB\Models\User\UpdateCountPosts::class,
|
||||
'UserManagerUpdateCountTopics' => \ForkBB\Models\User\UpdateCountTopics::class,
|
||||
'UserManagerUpdateLoginIpCache' => \ForkBB\Models\User\UpdateLoginIpCache::class,
|
||||
'UserManagerIsUniqueName' => \ForkBB\Models\User\IsUniqueName::class,
|
||||
'UserManagerUsersNumber' => \ForkBB\Models\User\UsersNumber::class,
|
||||
'UserManagerPromote' => \ForkBB\Models\User\Promote::class,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# ForkBB rev 3 Pre-Alpha Readme
|
||||
# ForkBB rev 4 Pre-Alpha Readme
|
||||
|
||||
## About
|
||||
|
||||
|
|
Loading…
Reference in a new issue