aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-09 00:30:35 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-09 00:30:35 +0000
commitb97b391cdd12ec62931c2a825ed4c70478ec5db0 (patch)
tree68c6d83de079eb3b54dfbb543ff11b028d24ad4b /mod
parent033b7726df3db6a96f2ade8e782709a6602ac3bc (diff)
downloadelgg-b97b391cdd12ec62931c2a825ed4c70478ec5db0.tar.gz
elgg-b97b391cdd12ec62931c2a825ed4c70478ec5db0.tar.bz2
Refs #2874: Using elgg_is_active_plugin() in core and bundled plugins.
git-svn-id: http://code.elgg.org/elgg/trunk@8082 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/embed/views/default/embed/embed.php2
-rw-r--r--mod/embed/views/default/embed/link.php2
-rw-r--r--mod/notifications/start.php2
-rw-r--r--mod/sitepages/index.php2
-rw-r--r--mod/thewire/start.php2
-rw-r--r--mod/twitterservice/start.php2
6 files changed, 6 insertions, 6 deletions
diff --git a/mod/embed/views/default/embed/embed.php b/mod/embed/views/default/embed/embed.php
index 7e84a9d72..e839450da 100644
--- a/mod/embed/views/default/embed/embed.php
+++ b/mod/embed/views/default/embed/embed.php
@@ -87,7 +87,7 @@ if (!$sections) {
// 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;
diff --git a/mod/embed/views/default/embed/link.php b/mod/embed/views/default/embed/link.php
index bbe6c74f5..c4fae0d42 100644
--- a/mod/embed/views/default/embed/link.php
+++ b/mod/embed/views/default/embed/link.php
@@ -4,7 +4,7 @@
*/
// 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 = '';
diff --git a/mod/notifications/start.php b/mod/notifications/start.php
index a200a6513..09d0f0c48 100644
--- a/mod/notifications/start.php
+++ b/mod/notifications/start.php
@@ -74,7 +74,7 @@ function notifications_plugin_pagesetup() {
);
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'),
diff --git a/mod/sitepages/index.php b/mod/sitepages/index.php
index 053f82996..56463a8d8 100644
--- a/mod/sitepages/index.php
+++ b/mod/sitepages/index.php
@@ -16,7 +16,7 @@ $content .= elgg_view_title(elgg_echo('content:latest'));
elgg_set_context('search');
$offset = (int)get_input('offset', 0);
-if(is_plugin_enabled('riverdashboard')){
+if(elgg_is_active_plugin('riverdashboard')){
$items = elgg_view_river_items(0, 0, "", "", "", '', 10, 0, 0, true, false);
$content .= elgg_view('riverdashboard/container', array('body' => $items . elgg_view('riverdashboard/js')));
}else{
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index fea2cf460..2ae5c53e8 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -221,7 +221,7 @@ function rest_wire_post($username, $text) {
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'))
diff --git a/mod/twitterservice/start.php b/mod/twitterservice/start.php
index 9f37aa151..ba7904ead 100644
--- a/mod/twitterservice/start.php
+++ b/mod/twitterservice/start.php
@@ -14,7 +14,7 @@ function twitterservice_init() {
$notice_id = 'twitter_services_disable';
- if (!is_plugin_enabled('oauth_lib')) {
+ if (!elgg_is_active_plugin('oauth_lib')) {
// disable the plugin
disable_plugin('twitterservice');