Merge remote-tracking branch 'mike/master' into dev
This commit is contained in:
commit
46cc360e4e
@ -114,8 +114,9 @@ function getRemoteFileSize($url)
|
|||||||
return strlen($data);
|
return strlen($data);
|
||||||
});
|
});
|
||||||
|
|
||||||
$result = curl_exec($ch);
|
curl_exec($ch);
|
||||||
$info = curl_getinfo($ch);
|
curl_getinfo($ch);
|
||||||
|
curl_close($ch);
|
||||||
|
|
||||||
return $size;
|
return $size;
|
||||||
}
|
}
|
@ -49,6 +49,7 @@ class Video {
|
|||||||
$cmd = $imagick_path . ' ' . escapeshellarg(PROJECT_BASE . '/' . $tmpfile . '[0]') . ' -thumbnail ' . $width . 'x' . $height . ' ' . escapeshellarg(PROJECT_BASE . '/' . $outfile);
|
$cmd = $imagick_path . ' ' . escapeshellarg(PROJECT_BASE . '/' . $tmpfile . '[0]') . ' -thumbnail ' . $width . 'x' . $height . ' ' . escapeshellarg(PROJECT_BASE . '/' . $outfile);
|
||||||
// logger('imagick thumbnail command: ' . $cmd);
|
// logger('imagick thumbnail command: ' . $cmd);
|
||||||
|
|
||||||
|
/** @scrutinizer ignore-unhandled */
|
||||||
@exec($cmd);
|
@exec($cmd);
|
||||||
|
|
||||||
if(! file_exists($outfile)) {
|
if(! file_exists($outfile)) {
|
||||||
|
@ -11,8 +11,8 @@ class Forums {
|
|||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
||||||
if(is_array($arr) && array_key_exists('limit',$arr))
|
if(is_array($arr) && array_key_exists('limit',$arr) && intval($arr['limit']) >= 0)
|
||||||
$limit = " limit " . intval($limit) . " ";
|
$limit = " limit " . intval($arr['limit']) . " ";
|
||||||
else
|
else
|
||||||
$limit = '';
|
$limit = '';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user