XF 2.2 $__globals.page difference between v2.1 and v2.2

smozgur

Active member
I needed to know the thread page number in my add-on, so I think $__globals.page is the way to go.

However, one thing I realized when I was working between v2.1 and v2.2 and it looks strange. This global variable value is null for the first thread page in v2.1. However, it is 1 as you would expect it to be. (I modified the add-on to make it compatible with v2.2, and wanted to make sure it is also compatible with v2.1 as I will update the add-ons before the major upgrade. That's how I realized this issue since add-on stopped working in v2.1 due to $__globals.page is never equal to 1.)

Do you know if it was a bug in <v2.1, and fixed in v2.2?
 
Last edited:
Top Bottom