summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-16 17:13:16 +0300
committerAndrew Dolgov <[email protected]>2021-02-16 17:13:16 +0300
commit9d7ba773ec97bfb44601348c07e818f1a1d2c841 (patch)
tree92c541d6bb06ac03ba358b2d0c66efc9674ef8ea /api
parent7fad6ce6518469e7d99c496a39c03a36288efd11 (diff)
move session-related functions to their own namespace
Diffstat (limited to 'api')
-rw-r--r--api/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/index.php b/api/index.php
index 664e92abe..eb79422f9 100644
--- a/api/index.php
+++ b/api/index.php
@@ -50,7 +50,7 @@
if (!init_plugins()) return;
if (!empty($_SESSION["uid"])) {
- if (!validate_session()) {
+ if (!\Sessions\validate_session()) {
header("Content-Type: text/json");
print json_encode(array("seq" => -1,