]> git.wh0rd.org - tt-rss.git/commitdiff
api: load user plugins properly
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Jul 2016 10:52:22 +0000 (13:52 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Jul 2016 10:52:22 +0000 (13:52 +0300)
api/index.php

index a8484ef0e562c8ae3adc81209c6249cf9466099b..b02a5d6794d3e4294bf72321ecf1e4ab2b6de22e 100644 (file)
 
        if (!init_plugins()) return;
 
+       if ($_SESSION["uid"]) {
+               load_user_plugins( $_SESSION["uid"]);
+       }
+
        $method = strtolower($_REQUEST["op"]);
 
        $handler = new API($_REQUEST);