mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:15:13 +00:00
move include to top of file
This commit is contained in:
parent
61add8b050
commit
aaf55b98a7
1 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,6 @@ use Code\Lib\IConfig;
|
|||
use Code\Lib\Libzot;
|
||||
use Code\Web\HTTPSig;
|
||||
use Code\Lib\Apps;
|
||||
use Code\Lib\Connect;
|
||||
use Code\Lib\LibBlock;
|
||||
use Code\Lib\Channel;
|
||||
use Code\Lib\ServiceClass;
|
||||
|
@ -16,6 +15,8 @@ use Code\Lib\Menu;
|
|||
use Code\Lib\MenuItem;
|
||||
use Code\Storage\Stdio;
|
||||
|
||||
require_once('include/attach.php');
|
||||
|
||||
/**
|
||||
* @brief Import a channel.
|
||||
*
|
||||
|
@ -1430,8 +1431,6 @@ function import_conv($channel, $convs)
|
|||
function sync_files($channel, $files)
|
||||
{
|
||||
|
||||
require_once('include/attach.php');
|
||||
|
||||
if ($channel && $files) {
|
||||
$limit = engr_units_to_bytes(ServiceClass::fetch($channel['channel_id'], 'attach_upload_limit'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue