summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-11 15:41:00 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-11 15:41:00 -0700
commit4c6045843ddbb98d1ccbf4a803fa4c45f062c391 (patch)
treef89c17c3e2648caa2871a5df7635e77276764454
parentbbbb35675acefc6b0b1b78dea9fd3a983189d772 (diff)
parent2c1e3800ef41f2aabd61b7d6d39751d2d157409e (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
-rw-r--r--modules/rest/helpers/rest.php3
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) {