diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-13 09:59:27 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-13 09:59:27 -0700 |
commit | 938eea7fc45d5ad26529a14f349b7e4be2fecb15 (patch) | |
tree | 903f5fd467565b16e7e65d84101060920b1449b7 /modules/rest/helpers/rest.php | |
parent | 0ebc36b4e5ef5578791c00b8a64021d3aad96068 (diff) | |
parent | 87f8b6ff0a76f51183f14515723a8345f7c14fa6 (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/rest/helpers/rest.php')
-rw-r--r-- | modules/rest/helpers/rest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 72927c71..3229330a 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -18,9 +18,12 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class rest_Core { + const API_VERSION = "3.0"; + static function reply($data=array()) { Session::instance()->abort_save(); + header("X-Gallery-API-Version: " . rest::API_VERSION); if (Input::instance()->get("output") == "html") { header("Content-type: text/html"); if ($data) { |