mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 02:27:34 -07:00
refactor: Moved classes from Legacy
folder to src
root (#1828)
* refactor: Moved classes from `Legacy` folder to `src` root * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updated * Updater * Update Caches.php * Updater * Updater * Updater * Updater * Update Attach.php * Update Post.php * Update BBCode.php * Update SqlDb.php * Update Upload.php * Update Upload.php * Updated * Updated * Revert "Updated" This reverts commit9ecc26b048
. * Revert "Updated" This reverts commit22db50889c
. * Revert "Update Upload.php" This reverts commita6faf4191a
.
This commit is contained in:
parent
ba3ce885c8
commit
92ce77ec0e
73 changed files with 260 additions and 278 deletions
|
@ -437,7 +437,7 @@ if ($mode) {
|
|||
|
||||
if ($to_id == -1) {
|
||||
// Delete everything from forum
|
||||
\TorrentPier\Legacy\Admin\Common::topic_delete('prune', $from_id, 0, true);
|
||||
\TorrentPier\Admin\Common::topic_delete('prune', $from_id, 0, true);
|
||||
$datastore->update('stats');
|
||||
} else {
|
||||
// Move all posts
|
||||
|
@ -467,7 +467,7 @@ if ($mode) {
|
|||
$start_id += $per_cycle;
|
||||
}
|
||||
|
||||
\TorrentPier\Legacy\Admin\Common::sync('forum', $to_id);
|
||||
\TorrentPier\Admin\Common::sync('forum', $to_id);
|
||||
}
|
||||
|
||||
DB()->query('DELETE FROM ' . BB_FORUMS . " WHERE forum_id = $from_id");
|
||||
|
@ -476,7 +476,7 @@ if ($mode) {
|
|||
|
||||
$cat_forums = get_cat_forums();
|
||||
fix_orphan_sf();
|
||||
\TorrentPier\Legacy\Group::update_user_level('all');
|
||||
TorrentPier\Group::update_user_level('all');
|
||||
$datastore->update('cat_forums');
|
||||
CACHE('bb_cache')->rm();
|
||||
|
||||
|
@ -650,7 +650,7 @@ if ($mode) {
|
|||
break;
|
||||
|
||||
case 'forum_sync':
|
||||
\TorrentPier\Legacy\Admin\Common::sync('forum', (int)$_GET[POST_FORUM_URL]);
|
||||
\TorrentPier\Admin\Common::sync('forum', (int)$_GET[POST_FORUM_URL]);
|
||||
$datastore->update('cat_forums');
|
||||
CACHE('bb_cache')->rm();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue