summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-11-25 13:45:21 +0300
committerAndrew Dolgov <[email protected]>2014-11-25 13:45:21 +0300
commit9997b38e3eada4d079491110c3bc9f11b76e693b (patch)
treebe9ba20b4761e44ea6ffbf96c2813d086c4332c6 /classes/api.php
parent59b5d5f3e6df7264349c136b5e981cc355deaa96 (diff)
api: allow requesting headlines as if client supports iframe sandboxing
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 730e20ab9..b9b1a7aa3 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -2,7 +2,7 @@
class API extends Handler {
- const API_LEVEL = 9;
+ const API_LEVEL = 10;
const STATUS_OK = 0;
const STATUS_ERR = 1;
@@ -201,6 +201,9 @@ class API extends Handler {
$sanitize_content = !isset($_REQUEST["sanitize"]) ||
sql_bool_to_bool($_REQUEST["sanitize"]);
$force_update = sql_bool_to_bool($_REQUEST["force_update"]);
+ $has_sandbox = sql_bool_to_bool($_REQUEST["has_sandbox"]);
+
+ $_SESSION['hasSandbox'] = $has_sandbox;
$override_order = false;
switch ($_REQUEST["order_by"]) {