mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 14:45:43 -07:00
Split functions to the composer autoloading
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
6aae72b836
commit
83ca67fae6
75 changed files with 3612 additions and 3184 deletions
|
@ -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>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue