aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-17 20:44:57 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-17 20:44:57 -0800
commit68da4d90dcbda1240ae014768a66a164fd5d2b36 (patch)
tree109692ad30537b2b48aa4b029b69c166e6a5ed2e /mod
parenta089064588352b60bebf27c94a51d480f8062368 (diff)
downloadvolse-hubzilla-68da4d90dcbda1240ae014768a66a164fd5d2b36.tar.gz
volse-hubzilla-68da4d90dcbda1240ae014768a66a164fd5d2b36.tar.bz2
volse-hubzilla-68da4d90dcbda1240ae014768a66a164fd5d2b36.zip
fix admin plugin hooks
Diffstat (limited to 'mod')
-rw-r--r--mod/admin.php7
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';