summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-07-20 13:52:22 +0300
committerAndrew Dolgov <[email protected]>2016-07-20 13:52:22 +0300
commit5d97019d5d30b259b84feba246eeb4ee08b42a99 (patch)
treece4d28a1dabb84a1e8c0c88880bbfcd377dc04d2 /api
parente6905f7f875db71c934693732b3e03f852268e2c (diff)
api: load user plugins properly
Diffstat (limited to 'api')
-rw-r--r--api/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/index.php b/api/index.php
index a8484ef0e..b02a5d679 100644
--- a/api/index.php
+++ b/api/index.php
@@ -57,6 +57,10 @@
if (!init_plugins()) return;
+ if ($_SESSION["uid"]) {
+ load_user_plugins( $_SESSION["uid"]);
+ }
+
$method = strtolower($_REQUEST["op"]);
$handler = new API($_REQUEST);