dolibarr_changes.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. This file describes changes made on external libraries after being included
  2. in Dolibarr root.
  3. ALL:
  4. ----
  5. Check "@CHANGE"
  6. CKEDITOR (4.6.2):
  7. -----------------
  8. * In ckeditor/ckeditor/contents.css
  9. Replace:
  10. body { ... margin: 20px;
  11. With
  12. body { ... margin: 5px;
  13. NUSOAP:
  14. -------
  15. * In file nusoap.php, to avoid a warning,
  16. Replace
  17. if (isset($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) {
  18. By
  19. if (! is_array($this->methodreturn) && isset($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) {
  20. * In file nusoap.php, to avoid a warning,
  21. Replace call to serialize_val with no bugged value
  22. TCPDF:
  23. ------
  24. * To avoid to have QRcode changed because generated with a random mask, replace
  25. define('QR_FIND_FROM_RANDOM', 2);
  26. with
  27. define('QR_FIND_FROM_RANDOM', false);
  28. * Removed useless directories ("examples", "tools")
  29. * Fix
  30. // initialize subsetchars
  31. $subsetchars = array();
  32. into
  33. // initialize subsetchars
  34. $subsetchars = array_fill(0, 256, true);
  35. * Replace the continue into switch with a break:
  36. case 're': {
  37. // justify block
  38. if (!TCPDF_STATIC::empty_string($this->lispacer)) {
  39. $this->lispacer = '';
  40. continue;
  41. }
  42. into
  43. case 're': {
  44. // justify block
  45. if (!TCPDF_STATIC::empty_string($this->lispacer)) {
  46. $this->lispacer = '';
  47. break;
  48. }
  49. * Optionnaly, removed all fonts except
  50. dejavusans* (used by greek, arab, persan, romanian, turkish),
  51. freemono* (russian),
  52. cid*+msungstdlight+stsongstdlight+uni2cid* (chinese),
  53. helvetica* (all other languages),
  54. zapfdingbats.php (for special chars like form checkboxes)
  55. * Optionnaly, made freemono the default monotype font because we removed courier
  56. In htdocs/includes/tcpdf/tcpdf.php
  57. - protected $default_monospaced_font = 'courier';
  58. + protected $default_monospaced_font = 'freemono';
  59. TCPDI:
  60. ------
  61. Add fpdf_tpl.php 1.2
  62. Add tcpdi.php
  63. Add tcpdi_parser.php and replace:
  64. require_once(dirname(__FILE__).'/include/tcpdf_filters.php');
  65. with:
  66. require_once(dirname(__FILE__).'/../tecnickcom/tcpdf/include/tcpdf_filters.php');
  67. * Fix by replacing
  68. } elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1] >= 2))) {
  69. with
  70. } elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1]) >= 2)) {
  71. JSGANTT:
  72. --------
  73. * Replace in function JSGantt.taskLink
  74. var OpenWindow=window.open(pRef, "newwin", "height="+vHeight+",width="+vWidth);
  75. with
  76. // LDR To open in same window
  77. //var OpenWindow=window.open(pRef, "newwin", "height="+vHeight+",width="+vWidth);
  78. window.location.href=pRef
  79. * Replace
  80. vTmpDiv=this.newNode(vTmpCell, 'div', null, null, vTaskList[i].getResource());
  81. with
  82. var vTmpNode=this.newNode(vTmpCell, 'div', null, '');
  83. vTmpNode=this.newNode(vTmpNode, 'a', null, '', vLangs[vLang]['moreinfo']);
  84. vTmpNode.setAttribute('href',vTaskList[i].getLink());
  85. * Replace '% Comp.' to have a smaller text column header
  86. 'comp':'% Comp.'
  87. with
  88. 'comp':'%'
  89. JCROP:
  90. ------
  91. * Remove analytics tag into file index.html
  92. JQUERYFILETREE:
  93. ---------------
  94. * Remove directory htdocs/includes/jquery/plugins/jqueryFileTree/connectors
  95. RESTLER:
  96. --------
  97. * Add 2 lines into file AutoLoader.php to complete function
  98. private function alias($className, $currentClass)
  99. {
  100. ...
  101. to get
  102. private function alias($className, $currentClass)
  103. {
  104. if ($className == 'Luracast\Restler\string') return;
  105. if ($className == 'Luracast\Restler\mixed') return;
  106. ...
  107. Change also file Luracast/Restler/explorer/index.html
  108. +With swagger 2:
  109. * Add line into Util.php to complete function
  110. public static function getShortName($className)
  111. {
  112. // @CHANGE LDR
  113. if (! is_string($className)) return;
  114. //var_dump($className);
  115. PARSEDOWN
  116. ---------
  117. * Add support of css by adding in Parsedown.php:
  118. // @CHANGE LDR
  119. 'class' => $Link['element']['attributes']['class']
  120. ...
  121. // @CHANGE LDR
  122. if (preg_match('/{([^}]+)}/', $remainder, $matches2))
  123. {
  124. $Element['attributes']['class'] = $matches2[1];
  125. $remainder = preg_replace('/{'.preg_quote($matches2[1],'/').'}/', '', $remainder);
  126. }
  127. // @CHANGE LDR
  128. //$markup .= $this->{$Element['handler']}($Element['text']);
  129. $markup .= preg_replace('/>{[^}]+}/', '>', $this->{$Element['handler']}($Element['text']));
  130. * Fix to avoid fatal error when mb_strlen not available:
  131. // @CHANGE LDR Fix when mb_strlen is not available
  132. //$shortage = 4 - mb_strlen($line, 'utf-8') % 4;
  133. if (function_exists('mb_strlen')) $len = mb_strlen($line, 'utf-8');
  134. else $len = strlen($line);
  135. $shortage = 4 - $len % 4;
  136. JEDITABLE.JS
  137. ------------
  138. * <button type="submit" /> => <button class="button" type="submit" />
  139. * <button type="cancel" /> => <button class="button" type="cancel" />