PhocaDownload plugin show unpublished files
Posted: 21 Nov 2016, 00:02
Hello.
Version joomla! 3.6.4.
Phocadownload plugin 3.1.2
Then i use "File list", it show also unpublished files.
I found in 261 string from phocadownload.php(main file of plugin)
You have resolve problem, but why you comment string with published check?
Version joomla! 3.6.4.
Phocadownload plugin 3.1.2
Then i use "File list", it show also unpublished files.
I found in 261 string from phocadownload.php(main file of plugin)
Code: Select all
if ((int)$id > 0) {
$query .= ' WHERE c.id = '.(int)$id;
//$query .= ' WHERE c.id = '.(int)$id . ' AND a.published = 1 AND a.approved = 1';
} else {
//$query .= ' WHERE a.published = 1 AND a.approved = 1';
}