mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:50:12 +00:00
forumlist: nodeinfo_plugin_enabled() is now plugin_enabled()
This commit is contained in:
parent
dac6f39f41
commit
215205d376
4 changed files with 61 additions and 53 deletions
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* @file include/identity.php
|
||||
*/
|
||||
|
||||
// install and uninstall plugin
|
||||
if (! function_exists('uninstall_plugin')){
|
||||
|
@ -105,7 +107,16 @@ function reload_plugins() {
|
|||
|
||||
}}
|
||||
|
||||
|
||||
/*
|
||||
* @brief check if addon is enabled
|
||||
*
|
||||
* @param string $plugin
|
||||
* @return boolean
|
||||
*/
|
||||
function plugin_enabled($plugin) {
|
||||
$r = q("SELECT * FROM `addon` WHERE `installed` = 1 AND `name` = '%s'", $plugin);
|
||||
return((bool)(count($r) > 0));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue