Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Debian Packaging Team: Difference between revisions

From MoodleDocs
(Note about plan not to migrate this page to the new developer resources. See template for more info.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Template:WillNotMigrate}}
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 ;-)
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 ;-)


Line 31: Line 32:


:: Just seems to be declaring the $CFG global:
:: Just seems to be declaring the $CFG global:
<code php>
<syntaxhighlight lang="php">
diff --git a/lib/simpletestlib/test_case.php b/lib/simpletestlib/test_case.php
diff --git a/lib/simpletestlib/test_case.php b/lib/simpletestlib/test_case.php
index 62d0349..91835a3 100644
index 62d0349..91835a3 100644
Line 45: Line 46:
             $this->_disableErrorReporting();
             $this->_disableErrorReporting();


</code>
</syntaxhighlight>

Latest revision as of 13:40, 24 June 2022


Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.


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();