Please fix

Viewing 2 posts - 1 through 2 (of 2 total)
#120476

I was debuging that the single file links weren’t showing for Mulit-file pakages ([downlown-link] for zip was working) in the [file-list] short code and I think the logic is wrong

Please check wp-content/plugins/download-manager/libs/class.FileList.php ln 79

if($noaccess === 0) {

if ($pwdlock && $idvdl) $pwdcol = “<th>” . __(“Password”, “download-manager”) . “</th>”;
if ($idvdl && $pwdlock) {
$dlcol = “<th>” . __(“Action”, “download-manager”) . “</th>”;
$swl = 1;
}
}
Should be this with “! $pwdlock” on the secound if
if($noaccess === 0) {

if ($pwdlock && $idvdl) $pwdcol = “<th>” . __(“Password”, “download-manager”) . “</th>”;
if ($idvdl && ! $pwdlock) {
$dlcol = “<th>” . __(“Action”, “download-manager”) . “</th>”;
$swl = 1;
}
}

props to pbearne

#120486

it looks like it is fixed in lastest version

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Please fix’ is closed to new replies.