As designed Raw calls to time() instead of \XF::$time

Affected version
2.0 Beta 4

Xon

Well-known member
In finalSetup for creating a thread and replying to a thread, time() is called directly instead of using \XF::$time.

There appears to also be a number of other places which call time() instead of using the request start time. Is this intended?
 

Mike

XenForo developer
Staff member
Generally speaking, the raw calls are intended in certain situations to eliminate potential problems if time may have past since the script started. (In threads, notably to help ensure correct post order.)

Is this creating problems?
 

Xon

Well-known member
No, it is just it is a reversal of the last time I raised an issue about the sporadic 'position out of order' error that happens in XF1.

But good to hear!
 
Top