Debian Packaging Team: Difference between revisions
Line 29: | Line 29: | ||
: I believe there are a few Moodle-specific tweaks - look in the code:--[[User:Tim Hunt|Tim Hunt]] 19:10, 1 November 2009 (UTC) | : I believe there are a few Moodle-specific tweaks - look in the code:--[[User:Tim Hunt|Tim Hunt]] 19:10, 1 November 2009 (UTC) | ||
:: Just seems to be declaring the $CFG global: | |||
<code php> | |||
diff --git a/lib/simpletestlib/test_case.php b/lib/simpletestlib/test_case.php | |||
index 62d0349..91835a3 100644 | |||
--- a/lib/simpletestlib/test_case.php | |||
+++ b/lib/simpletestlib/test_case.php | |||
@@ -458,6 +458,7 @@ | |||
*/ | |||
function _requireWithError($file) { | |||
$this->_enableErrorReporting(); | |||
+ global $CFG; // Moodle patch for $CFG global in unit test files | |||
include($file); | |||
$error = isset($php_errormsg) ? $php_errormsg : false; | |||
$this->_disableErrorReporting(); | |||
</code> |
Revision as of 19:52, 1 November 2009
This page is a shameless abuse of the moodle docs wiki for the debian packaging team to keep track of their goals and not loose mind ;-)
Removing Embedded Libraries
phpmailer
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=429339
We can probably fix this by helping changing the way that phpmailer is used in moodle, See MDL-20701
tinymce
In Moodle 1.9 this is not being used (I dont think). In Moodle 2.0 this needs thinking about
libphp-adodb
Won't fix. Moodle customise it.
libphp-snoopy
Lookes like the changes are only in cosmetics. Can go.
libmarkdown-php
We can't fix this one, moodle uses markdown extra
nusoap
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529573
Doesn't need to be used on debian since we have php5 and soap extension. Removing
php-simpletest
Need to investigate..
- I believe there are a few Moodle-specific tweaks - look in the code:--Tim Hunt 19:10, 1 November 2009 (UTC)
- Just seems to be declaring the $CFG global:
diff --git a/lib/simpletestlib/test_case.php b/lib/simpletestlib/test_case.php
index 62d0349..91835a3 100644
--- a/lib/simpletestlib/test_case.php
+++ b/lib/simpletestlib/test_case.php
@@ -458,6 +458,7 @@
*/
function _requireWithError($file) {
$this->_enableErrorReporting();
+ global $CFG; // Moodle patch for $CFG global in unit test files
include($file);
$error = isset($php_errormsg) ? $php_errormsg : false;
$this->_disableErrorReporting();