diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-18 06:48:29 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-18 06:48:29 +0100 |
commit | 0d232c612b71ba28dba234415185ecfb45a80695 (patch) | |
tree | 5594cbe27017dd5b640eb9282f816ac6b7066d13 /mod/admin.php | |
parent | 545dc5cf65fef823a9ca8a5bcde6e346d4503d4c (diff) | |
parent | 68da4d90dcbda1240ae014768a66a164fd5d2b36 (diff) | |
download | volse-hubzilla-0d232c612b71ba28dba234415185ecfb45a80695.tar.gz volse-hubzilla-0d232c612b71ba28dba234415185ecfb45a80695.tar.bz2 volse-hubzilla-0d232c612b71ba28dba234415185ecfb45a80695.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mod/admin.php')
-rw-r--r-- | mod/admin.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/admin.php b/mod/admin.php index a884b7658..3f1a69ca6 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -1042,7 +1042,12 @@ function admin_page_plugins(&$a){ } $admin_form = ''; - if (is_array($a->plugins_admin) && in_array($plugin, $a->plugins_admin)){ + + $r = q("select * from addon where plugin_admin = 1 and name = '%s' limit 1", + dbesc($plugin) + ); + + if($r) { @require_once("addon/$plugin/$plugin.php"); if(function_exists($plugin.'_plugin_admin')) { $func = $plugin.'_plugin_admin'; |