array( "revision" => $revision, "file" => $file ))); }else{ $l = OC_L10N::get('files_versions'); OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", $file )))); }