case 'groups':
// don't return results if groups aren't enabled.
- if (!is_plugin_enabled('groups')) {
+ if (!elgg_is_active_plugin('groups')) {
continue;
}
$query = "SELECT * FROM {$CONFIG->dbprefix}groups_entity as ge, {$CONFIG->dbprefix}entities as e
$access = elgg_set_ignore_access(TRUE);
-if (is_plugin_enabled('walledgarden')) {
+if (elgg_is_active_plugin('walledgarden')) {
disable_plugin('walledgarden');
set_config('allow_registration', FALSE);
set_config('walled_garden', TRUE);
* Upgrades the oAuth Library plugin name
*/
-if (is_plugin_enabled('oauth')) {
+if (elgg_is_active_plugin('oauth')) {
disable_plugin('oauth');
enable_plugin('oauth_lib');
}
// pull out some common tests
// embed requires ECML, but until we have plugin deps working
// we need to explicitly check and use a fallback.
- if ($ecml_enabled = is_plugin_enabled('ecml')){
+ if ($ecml_enabled = elgg_is_active_plugin('ecml')){
$ecml_valid_keyword = ecml_is_valid_keyword($active_section);
} else {
$ecml_valid_keyword = FALSE;
*/
// yeah this is naughty. embed and ecml might want to merge.
-if (is_plugin_enabled('ecml')) {
+if (elgg_is_active_plugin('ecml')) {
$active_section = 'active_section=web_services&';
} else {
$active_section = '';
);
elgg_register_menu_item('page', $params);
- if (is_plugin_enabled('groups')) {
+ if (elgg_is_active_plugin('groups')) {
$params = array(
'name' => '2_group_notify',
'title' => elgg_echo('notifications:subscriptions:changesettings:groups'),
\r
elgg_set_context('search');\r
$offset = (int)get_input('offset', 0);\r
-if(is_plugin_enabled('riverdashboard')){\r
+if(elgg_is_active_plugin('riverdashboard')){\r
$items = elgg_view_river_items(0, 0, "", "", "", '', 10, 0, 0, true, false);\r
$content .= elgg_view('riverdashboard/container', array('body' => $items . elgg_view('riverdashboard/js')));\r
}else{\r
if (($object) && ($object->subtype == get_subtype_id('object', 'sms')))
{
// Get user from phone number
- if ((is_plugin_enabled('smsclient')) && (is_plugin_enabled('smslogin')))
+ if ((elgg_is_active_plugin('smsclient')) && (elgg_is_active_plugin('smslogin')))
{
// By this stage the owner should be logged in (requires SMS Login)
if (thewire_save_post($object->description, get_default_access(), 0, 'sms'))
$notice_id = 'twitter_services_disable';
- if (!is_plugin_enabled('oauth_lib')) {
+ if (!elgg_is_active_plugin('oauth_lib')) {
// disable the plugin
disable_plugin('twitterservice');
// Display list of plugins
$n = 0;
foreach ($installed_plugins as $plugin => $data) {
- if (is_plugin_enabled($plugin)) {
+ if (elgg_is_active_plugin($plugin)) {
echo elgg_view("core/settings/tools/plugin", array('plugin' => $plugin, 'details' => $data));
}
}
\ No newline at end of file