forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Gillie on October 28, 2012, 08:34:25 pm
-
I found this post http://forum.coppermine-gallery.net/index.php/topic,74682.0.html (http://forum.coppermine-gallery.net/index.php/topic,74682.0.html) that might clarify what the problem is on our board.
Your post says that cpg1.5.20 includes fixes for the following non-security related issues:
--display only the uploaded files from the last queue after flash upload
We want the display to show all the previous uploads.
It used to work that way.
Can we change it back?
-
You can find the corresponding code changes here: http://forum.coppermine-gallery.net/index.php/topic,73826.msg356029.html#msg356029
You don't need to undo all of them, it should be enough to remove e.g.
// Display only the files from the last queue after flash upload
if ($superCage->get->keyExists('newer_than')) {
$owner_str .= " AND ctime > '".$superCage->get->getInt('newer_than')."'";
}
from editpics.php.
To make it more upgrade-friendly, we can add a hidden config option to cpg1.5.22 which looks like:
// Display only the files from the last queue after flash upload
if ($superCage->get->keyExists('newer_than') && $CONFIG['editpics_ignore_newer_than'] != 1) {
$owner_str .= " AND ctime > '".$superCage->get->getInt('newer_than')."'";
}
This way, you can add a new row to your database's config table and don't need to re-apply this mod on each upgrade. Please let me know your decision.
-
just see the solution
-
Committed code change in SVN revision 8515.
-
Added missing database records and config option (cpg1.6.x only) in SVN revision 8649.