Fix mime_open handler for old etemplate

This commit is contained in:
Hadi Nategh 2015-03-30 14:45:39 +00:00
parent 2ef3d4f048
commit 65fb3fc6be

View File

@ -1043,11 +1043,14 @@ class egw_link extends solink
$data[$data['mime_id']] = $path; $data[$data['mime_id']] = $path;
unset($data['mime_id']); unset($data['mime_id']);
} }
elseif(isset($data['mime_popup']))
{
$popup = $data['mime_popup'];
}
else else
{ {
throw new egw_exception_assertion_failed("Missing 'mime_id' or 'mime_url' for mime-type '$type'!"); throw new egw_exception_assertion_failed("Missing 'mime_id' or 'mime_url' for mime-type '$type'!");
} }
$popup = $data['mime_popup'];
unset($data['mime_popup']); unset($data['mime_popup']);
} }
else else