News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

2.0 RC3 attachDirStatus() does not affect moved avatars dir in

Started by petb, March 30, 2010, 07:41:48 PM

Previous topic - Next topic

petb

attachDirStatus gets the number of expected files and checks if it is the same as the number of attachments stored in the database.
This works if attachments and Avatars are both stored in the avatars Dir.

But if the Avatars are moved to a different Directory(For better Performance, like described in the Performance Tipps) than the normal attachmenst directory has less files than the the attachDirStatus Function gets as paramter "expectedfiles".

So it say there are missing files because it counts only the exisiting attachments in den attachment dir but estimate them plus the avatars which are now stored in the avatars dir.

So the Function who gives attachDirStatus() the estimated files count should decrease the amount with the amount of the moved avatars.

Actually this gives a status error, where no error was.

PeBe

EDIT
Sorry, forgot:   SMF 2.0 RC3

Arantor

Holder of controversial views, all of which my own.


petb



Advertisement: