This patch moves the "$flag->api_version == FLAG_API_VERSION" check to a method.

Why?

- So it can be reused (here and here).
- To have a place for documentation.

CommentFileSizeAuthor
#1 is_compatible.diff2.67 KBmooffie

Comments

mooffie’s picture

Status: Active » Needs review
StatusFileSize
new2.67 KB

The patch.

(Our code had two "$flag->api_version < FLAG_API_VERSION" and one "$flag->api_version == FLAG_API_VERSION". I used the latter as it seems the correct one.)

mooffie’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.