api: load user plugins properly

This commit is contained in:
Andrew Dolgov 2016-07-20 13:52:22 +03:00
parent e6905f7f87
commit 5d97019d5d
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@
if (!init_plugins()) return;
if ($_SESSION["uid"]) {
load_user_plugins( $_SESSION["uid"]);
}
$method = strtolower($_REQUEST["op"]);
$handler = new API($_REQUEST);