From a586bd33ae7945db5548e912b78354411f770711 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 10 Mar 2014 18:29:28 +0100 Subject: [PATCH] Fixing plugins for 1.10 --- plugin/bbb/config.php | 4 ++-- plugin/before_login/plugin.php | 2 +- plugin/ext_auth_chamilo_logout_button_behaviour/plugin.php | 2 +- plugin/olpc_peru_filter/config.php | 2 +- plugin/openmeetings/config.php | 2 +- plugin/ticket/config.install.php | 4 ++-- plugin/ticket/config.php | 6 +++--- plugin/widescale_exam/user_list.php | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/plugin/bbb/config.php b/plugin/bbb/config.php index fda6f94043..2eb503d6ee 100644 --- a/plugin/bbb/config.php +++ b/plugin/bbb/config.php @@ -3,9 +3,9 @@ /* bbb parameters that will be registered in the course settings */ -require_once '../../main/inc/global.inc.php'; +//require_once '../../main/inc/global.inc.php'; require_once api_get_path(LIBRARY_PATH).'plugin.class.php'; require_once 'lib/bbb.lib.php'; require_once 'lib/bbb_api.php'; -require_once 'lib/bbb_plugin.class.php'; \ No newline at end of file +require_once 'lib/bbb_plugin.class.php'; diff --git a/plugin/before_login/plugin.php b/plugin/before_login/plugin.php index 290584e74e..35b486b2c6 100644 --- a/plugin/before_login/plugin.php +++ b/plugin/before_login/plugin.php @@ -8,7 +8,7 @@ */ /* Plugin config */ - +return; // The plugin title. $plugin_info['title'] = 'Show HTML before login'; // The comments that go with the plugin. diff --git a/plugin/ext_auth_chamilo_logout_button_behaviour/plugin.php b/plugin/ext_auth_chamilo_logout_button_behaviour/plugin.php index c7896bdd93..9f91b5faef 100755 --- a/plugin/ext_auth_chamilo_logout_button_behaviour/plugin.php +++ b/plugin/ext_auth_chamilo_logout_button_behaviour/plugin.php @@ -36,7 +36,7 @@ $tab_default_ext_auth_chamilo_logout_button_behaviour_eaclbb_form_alert_onoff = $tab_default_ext_auth_chamilo_logout_button_behaviour_eaclbb_form_alert_text = api_get_setting('ext_auth_chamilo_logout_button_behaviour_eaclbb_form_alert_text'); $defaults['eaclbb_form_link_url'] = $tab_default_ext_auth_chamilo_logout_button_behaviour_eaclbb_form_link_url['eaclbb_form_link_url']; $defaults['eaclbb_form_link_infobulle'] = $tab_default_ext_auth_chamilo_logout_button_behaviour_eaclbb_form_link_infobulle['eaclbb_form_link_infobulle']; -$defaults['eaclbb_form_link_image'] = $tab_default_ext_auth_chamilo_logout_button_behaviour_eaclbb_form_link_image['eaclbb_form_link_image']; +//$defaults['eaclbb_form_link_image'] = $tab_default_ext_auth_chamilo_logout_button_behaviour_eaclbb_form_link_image['eaclbb_form_link_image']; $defaults['eaclbb_form_alert_onoff'] = $tab_default_ext_auth_chamilo_logout_button_behaviour_eaclbb_form_alert_onoff['eaclbb_form_alert_onoff']; $defaults['eaclbb_form_alert_text'] = $tab_default_ext_auth_chamilo_logout_button_behaviour_eaclbb_form_alert_text['eaclbb_form_alert_text']; $form->setDefaults($defaults); diff --git a/plugin/olpc_peru_filter/config.php b/plugin/olpc_peru_filter/config.php index 8e2e055145..b9fa5634c7 100644 --- a/plugin/olpc_peru_filter/config.php +++ b/plugin/olpc_peru_filter/config.php @@ -3,7 +3,7 @@ /* OLPCPeruFilter parameters that will be registered in the course settings */ -require_once '../../main/inc/global.inc.php'; +///require_once '../../main/inc/global.inc.php'; require_once 'lib/olpc_peru_filter_plugin.class.php'; /** diff --git a/plugin/openmeetings/config.php b/plugin/openmeetings/config.php index 9cc0fba19e..2a766e9384 100644 --- a/plugin/openmeetings/config.php +++ b/plugin/openmeetings/config.php @@ -3,7 +3,7 @@ /* Openmeetings parameters that will be registered in the course settings */ -require_once '../../main/inc/global.inc.php'; +//require_once '../../main/inc/global.inc.php'; require_once api_get_path(LIBRARY_PATH).'plugin.class.php'; require_once 'lib/openmeetings.class.php'; diff --git a/plugin/ticket/config.install.php b/plugin/ticket/config.install.php index 03a683fc16..a8276e541d 100644 --- a/plugin/ticket/config.install.php +++ b/plugin/ticket/config.install.php @@ -3,8 +3,8 @@ /* bbb parameters that will be registered in the course settings */ -require_once '../../main/inc/global.inc.php'; +//require_once '../../main/inc/global.inc.php'; require_once api_get_path(LIBRARY_PATH).'plugin.class.php'; require_once 'lib/ticket.class.php'; -require_once 'lib/ticket_plugin.class.php'; \ No newline at end of file +require_once 'lib/ticket_plugin.class.php'; diff --git a/plugin/ticket/config.php b/plugin/ticket/config.php index af1ad5564c..f799efaaf6 100644 --- a/plugin/ticket/config.php +++ b/plugin/ticket/config.php @@ -34,12 +34,12 @@ define('CAT_DOCU', 'DOC'); define('CAT_FORO', 'FOR'); define('CAT_ANNU', 'ANN'); -require_once __DIR__.'/../../main/inc/global.inc.php'; +//require_once __DIR__.'/../../main/inc/global.inc.php'; require_once api_get_path(LIBRARY_PATH).'plugin.class.php'; require_once api_get_path(LIBRARY_PATH).'course.lib.php'; -require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php'; +//require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php'; include_once api_get_path(LIBRARY_PATH).'export.lib.inc.php'; require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/lib/ticket.class.php'; require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/lib/ticket_plugin.class.php'; -require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/s/ticket.class.php'; \ No newline at end of file +require_once api_get_path(PLUGIN_PATH).PLUGIN_NAME.'/s/ticket.class.php'; diff --git a/plugin/widescale_exam/user_list.php b/plugin/widescale_exam/user_list.php index 3bd0d80a2a..2671689b37 100644 --- a/plugin/widescale_exam/user_list.php +++ b/plugin/widescale_exam/user_list.php @@ -1,7 +1,7 @@