summaryrefslogtreecommitdiffstats
path: root/apps/files_versioning/ajax/gethead.php
blob: cc93b7a1d17aa0ac33ab6410caa74c219269bf02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
/**
 * Copyright (c) 2011 Craig Roberts craig0990@googlemail.com
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 */
require_once('../../../lib/base.php');

OC_JSON::checkLoggedIn();
// Fetch current commit (or HEAD if not yet set)
$head = OC_Preferences::getValue(OC_User::getUser(), 'files_versioning', 'head', 'HEAD');
OC_JSON::encodedPrint(array("head" => $head));