This commit is contained in:
Mike Macgirvin 2018-09-20 12:36:29 +10:00
commit 529171de8f
2 changed files with 10 additions and 1 deletions

View file

@ -122,6 +122,15 @@ class Item extends \Zotlabs\Web\Controller {
killme(); killme();
} }
if(argc() > 1 && argv(1) !== 'drop') {
$x = q("select plink from item where mid = '%s' limit 1",
dbesc(z_root() . '/item/' . argv(1))
);
if($x) {
goaway($x[0]['plink']);
}
}
} }

View file

@ -531,7 +531,7 @@ class Setup extends \Zotlabs\Web\Controller {
$ck_funcs[0]['status'] = false; $ck_funcs[0]['status'] = false;
$ck_funcs[0]['help'] = t('Error: libCURL PHP module required but not installed.'); $ck_funcs[0]['help'] = t('Error: libCURL PHP module required but not installed.');
} }
if((! function_exists('imagecreatefromjpeg')) || (! class_exists('\\Imagick'))) { if((! function_exists('imagecreatefromjpeg')) && (! class_exists('\\Imagick'))) {
$ck_funcs[1]['status'] = false; $ck_funcs[1]['status'] = false;
$ck_funcs[1]['help'] = t('Error: GD PHP module with JPEG support or ImageMagick graphics library required but not installed.'); $ck_funcs[1]['help'] = t('Error: GD PHP module with JPEG support or ImageMagick graphics library required but not installed.');
} }