aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-12-03 18:14:52 +0100
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-12-03 18:14:52 +0100
commitc363fc71eb054ffa615bdfe03c645a9ab946379e (patch)
tree564dbaa2dac8bb13260704730a8e5483084baa67 /include/plugin.php
parentb96f09bb3aeee403038755ab5f6e6b53654cb145 (diff)
parent9f3ea71d5d9e1e42d1d1e44a8070d90814962ad2 (diff)
downloadvolse-hubzilla-c363fc71eb054ffa615bdfe03c645a9ab946379e.tar.gz
volse-hubzilla-c363fc71eb054ffa615bdfe03c645a9ab946379e.tar.bz2
volse-hubzilla-c363fc71eb054ffa615bdfe03c645a9ab946379e.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-xinclude/plugin.php11
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';
+}