Commit 6d48f277 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1822224: Stop trying to set quota block twice



behatnotneeded

Change-Id: I83b1067e9b90a36868be669ebb5aedb9d3435ef3
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 57a9051e
......@@ -19,8 +19,6 @@ $fileid = param_integer('file');
// @todo provide upload form when fileid not set.
$file = artefact_instance_from_id($fileid);
$smartyconfig = array('sideblocks' => array(quota_sideblock($file->get('group'))));
if ($group = $file->get('group')) {
require_once(get_config('libroot') . 'group.php');
define('GROUP', $group);
......@@ -116,7 +114,7 @@ if ($zipinfo) {
}
}
$smarty = smarty(array(), array(), array(), $smartyconfig);
$smarty = smarty();
$smarty->assign('file', $file);
$smarty->assign('zipinfo', $zipinfo);
$smarty->assign('message', $message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment