Jump to content

How can i get current framework version?


Numbered

Recommended Posts

Hi friends!

I make now application, which should work on 4.1.19 version of IPS. This app will deploy before production will upgrade to 4.2. And i want for make this app working on two versions. All code inside worked now well on both versions, but i need to log member info (ip address and useragent). In 4.2 it must get from Devices, which are not present in 4.1. So my question is:

how can i get current version from code for make right logic for each of that versions? Something like \IPS\Settings:i()->current_ips_version.. ) or any. Couldn't find by himself good source of that.

upd. found it

\IPS\Application::load('core')->version

thanks for me)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...