Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 28. Mar 2024, 20:21

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 8. May 2014, 06:04 
Offline

Joined: 8. May 2014, 06:01
Posts: 3
I have photos dating back to 2000. I start getting errors with files/folders sometime in 2001. Here is an example in filefunctions.inc.php (around line 912):

$locverzeichnisse[$x] = substr($locverzeichnisse[$x], 11);

The date is assumed to be 11 characters long. This isn't true for older dates. It's done in several other areas of the code.

-tm


Top
 Profile  
 
PostPosted: 8. May 2014, 13:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Right. This was implemented this way.
If you want to fix this you can simply append a leading zero at all this places.

This is only done for sorting.

Best, Michael


Top
 Profile  
 
PostPosted: 18. May 2014, 22:39 
Offline

Joined: 8. May 2014, 06:01
Posts: 3
Extracting everything up to the underscore would have worked for all situations without significant additional complexity. Instead, it fails for old dates and will eventually break when the epoch ticks roll over requiring an additional digit (although that's many decades away).

-tm


Top
 Profile  
 
PostPosted: 19. May 2014, 09:27 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I just checked the code. There is already an additional digit attached. But for a length of 9 which is wrong because there is a spacer counted as well. I have fixed this is in the code. So it should work in the next update.

Best, Michael


Top
 Profile  
 
PostPosted: 19. May 2014, 17:22 
Offline

Joined: 8. May 2014, 06:01
Posts: 3
Great, thanks. I didn't want to have to patch the code for my setup on every update.

-tm


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy