Browse Source

API/getVersion: don't try to use removed VERSION constant

Andrew Dolgov 6 months ago
parent
commit
b1c5ebdace
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/api.php

+ 1 - 1
classes/api.php

@@ -40,7 +40,7 @@ class API extends Handler {
 	}
 
 	function getVersion() {
-		$rv = array("version" => VERSION);
+		$rv = array("version" => get_version());
 		$this->wrap(self::STATUS_OK, $rv);
 	}