diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-02 16:21:15 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-02 16:21:15 -0800 |
commit | c29f622b90a58a783787b27736cd9738e6be50c2 (patch) | |
tree | 451c3c0858a4e1e13e77552e324ea2d684707cb4 /include | |
parent | 25caeee8547df73a7162dc6de30a030fa0bceea8 (diff) | |
download | volse-hubzilla-c29f622b90a58a783787b27736cd9738e6be50c2.tar.gz volse-hubzilla-c29f622b90a58a783787b27736cd9738e6be50c2.tar.bz2 volse-hubzilla-c29f622b90a58a783787b27736cd9738e6be50c2.zip |
introduce STD_VERSION and get_std_version() [in include/plugin.php], we begin with 0.11.1 since it is an incompatible interface change to 0.11.
Diffstat (limited to 'include')
-rwxr-xr-x | include/plugin.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/plugin.php b/include/plugin.php index 8749f3fbf..1d4caac0f 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -616,3 +616,14 @@ function get_markup_template($s, $root = '') { $template = $t->get_markup_template($s, $root); return $template; } + +// return the standardised version. Since we can't easily compare +// before the STD_VERSION definition was applied, we have to treat +// all prior release versions the same. You can dig through them +// with other means (such as RED_VERSION) if necessary. + +function get_std_version() { + if(defined('STD_VERSION')) + return STD_VERSION; + return '0.0.0'; +} |