Quote:
Originally Posted by TnT
Hi,
errormessages are not shown after Upload a file, because the new versions of vb handles the newpost_errormessage template different: foreach is done in the template.
To fix this, change in downloads.php at line 1763
PHP Code:
foreach ($errors['message'] AS $errormessage)
{
$templater = vB_Template::create('newpost_errormessage');
$templater->register('errormessage', $errormessage);
$errorlist .= $templater->render();
}
with
PHP Code:
$templater = vB_Template::create('newpost_errormessage');
$templater->register('errors', $errors['message']);
$errorlist .= $templater->render();
Thanks for this great addon,
Thomas
|
when you add a file with a extention thats not allowed you still get
The following errors occurred when this file was submitted:
but nothing else, without this edit as well
where should I be able to see if it's working correctly
all your really changing is this line correct ?
Code:
$templater->register('errors', $errors['message']);