Sfoglia il codice sorgente

Should fix bug when including file see #5244

Julio Montoya 12 anni fa
parent
commit
3b16635c32

+ 4 - 1
plugin/bbb/config.php

@@ -4,5 +4,8 @@
 /* bbb parameters that will be registered in the course settings */
 
 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_api.php';
+require_once 'lib/bbb_plugin.class.php';

+ 1 - 1
plugin/bbb/install.php

@@ -8,5 +8,5 @@
  * Initialization
  */
 
-require_once 'config.php';
+require_once dirname(__FILE__).'/config.php';
 BBBPlugin::create()->install();

+ 0 - 3
plugin/bbb/lib/bbb.lib.php

@@ -4,9 +4,6 @@
  * @package chamilo.plugin.bigbluebutton
  */
 
-require_once api_get_path(LIBRARY_PATH).'plugin.class.php';
-require_once 'bbb_plugin.class.php';
-
 class bbb {
 
     var $url;

+ 1 - 1
plugin/bbb/listing.php

@@ -8,7 +8,7 @@
  */
 
 $course_plugin = 'bbb'; //needed in order to load the plugin lang variables 
-require_once 'config.php';
+require_once dirname(__FILE__).'/config.php';
 $tool_name = get_lang('Videoconference');
 $tpl = new Template($tool_name);
 

+ 1 - 1
plugin/bbb/plugin.php

@@ -1,4 +1,4 @@
 <?php
 
-require_once 'config.php';
+require_once dirname(__FILE__).'/config.php';
 $plugin_info = BBBPlugin::create()->get_info();

+ 1 - 1
plugin/bbb/start.php

@@ -8,7 +8,7 @@
  */
 
 $course_plugin = 'bbb'; //needed in order to load the plugin lang variables 
-require_once 'config.php';
+require_once dirname(__FILE__).'/config.php';
 $tool_name = get_lang('Videoconference');
 $tpl = new Template($tool_name);
 $bbb = new bbb();

+ 1 - 1
plugin/bbb/uninstall.php

@@ -9,5 +9,5 @@
 /**
  * Queries
  */
-require_once 'config.php';
+require_once dirname(__FILE__).'/config.php';
 BBBPlugin::create()->uninstall();

+ 1 - 1
plugin/olpc_peru_filter/install.php

@@ -9,5 +9,5 @@
  * Initialization
  */
 
-require_once 'config.php';
+require_once dirname(__FILE__).'/config.php';
 OLPC_Peru_FilterPlugin::create()->install();

+ 1 - 1
plugin/olpc_peru_filter/plugin.php

@@ -1,4 +1,4 @@
 <?php
 $course_plugin = 'olpc_peru_filter'; //needed in order to load the plugin lang variables 
-require_once 'config.php';
+require_once dirname(__FILE__).'/config.php';
 $plugin_info = OLPC_Peru_FilterPlugin::create()->get_info();

+ 1 - 1
plugin/olpc_peru_filter/uninstall.php

@@ -9,5 +9,5 @@
 /**
  * Queries
  */
-require_once 'config.php';
+require_once dirname(__FILE__).'/config.php';
 OLPC_Peru_FilterPlugin::create()->uninstall();