Phoca Download Plugin : publish_down date isn't working
Posted: 19 Apr 2021, 13:33
Hello.
In the plugin, publish_down date isn't working.
So in FileList view, I modify the following code between lines 288 and 291 :
Could you possibly add it to the plugin for a future update?
In the plugin, publish_down date isn't working.
So in FileList view, I modify the following code between lines 288 and 291 :
Code: Select all
$query .= ' WHERE c.id = '.(int)$id. ' AND a.published = 1 AND `publish_down` = \'0000-00-00 00:00:00\' OR `publish_down`>now()';//a.approved = 1';
//$query .= ' WHERE c.id = '.(int)$id . ' AND a.published = 1 AND a.approved = 1';
} else {
$query .= ' `publish_down` = \'0000-00-00 00:00:00\' OR `publish_down`>now()';//WHERE a.published = 1 AND a.approved = 1';