Split functions to the composer autoloading

Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
Yuriy Pikhtarev 2018-06-24 14:13:56 +03:00
commit 83ca67fae6
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
75 changed files with 3612 additions and 3184 deletions

View file

@ -80,9 +80,7 @@ switch ($mode) {
case 'update_user_level':
require INC_DIR . '/functions_group.php';
update_user_level('all');
\TorrentPier\Legacy\Group::update_user_level('all');
$this->response['update_user_level_html'] = '<span class="seed bold">' . $lang['USER_LEVELS_UPDATED'] . '</span>';
@ -90,8 +88,8 @@ switch ($mode) {
case 'sync_topics':
sync('topic', 'all');
sync_all_forums();
\TorrentPier\Legacy\Admin\Common::sync('topic', 'all');
\TorrentPier\Legacy\Admin\Common::sync_all_forums();
$this->response['sync_topics_html'] = '<span class="seed bold">' . $lang['TOPICS_DATA_SYNCHRONIZED'] . '</span>';
@ -99,7 +97,7 @@ switch ($mode) {
case 'sync_user_posts':
sync('user_posts', 'all');
\TorrentPier\Legacy\Admin\Common::sync('user_posts', 'all');
$this->response['sync_user_posts_html'] = '<span class="seed bold">' . $lang['USER_POSTS_COUNT_SYNCHRONIZED'] . '</span>';
@ -107,7 +105,7 @@ switch ($mode) {
case 'unlock_cron':
TorrentPier\Helpers\CronHelper::enableBoard();
\TorrentPier\Helpers\CronHelper::enableBoard();
$this->response['unlock_cron_html'] = '<span class="seed bold">' . $lang['ADMIN_UNLOCKED'] . '</span>';