Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:gallery/gallery3
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Almdal committed Jun 11, 2010
2 parents bbbb356 + 2c1e380 commit 4c60458
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/rest/helpers/rest.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 4c60458

Please sign in to comment.