mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -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
|
@ -1335,7 +1335,7 @@ function bb_die($msg_text)
|
|||
|
||||
// If empty session
|
||||
if (empty($userdata)) {
|
||||
$userdata = session_pagestart();
|
||||
$userdata = \TorrentPier\Legacy\Sessions::session_pagestart();
|
||||
}
|
||||
|
||||
// If the header hasn't been output then do it
|
||||
|
@ -2081,16 +2081,14 @@ function is_gold($type)
|
|||
|
||||
function update_atom($type, $id)
|
||||
{
|
||||
require_once INC_DIR . '/functions_atom.php';
|
||||
|
||||
switch ($type) {
|
||||
case 'user':
|
||||
update_user_feed($id, get_username($id));
|
||||
\TorrentPier\Legacy\Atom::update_user_feed($id, get_username($id));
|
||||
break;
|
||||
|
||||
case 'topic':
|
||||
$topic_poster = (int)DB()->fetch_row("SELECT topic_poster FROM " . BB_TOPICS . " WHERE topic_id = $id LIMIT 1", 'topic_poster');
|
||||
update_user_feed($topic_poster, get_username($topic_poster));
|
||||
\TorrentPier\Legacy\Atom::update_user_feed($topic_poster, get_username($topic_poster));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue