move include to top of file

This commit is contained in:
Mike Macgirvin 2022-09-22 20:49:19 +10:00
parent 61add8b050
commit aaf55b98a7

View file

@ -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'));