123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- This file describes changes made on external libraries after being included
- in Dolibarr root.
- ALL:
- ----
- Check "@CHANGE"
- CKEDITOR (4.6.2):
- -----------------
- * In ckeditor/ckeditor/contents.css
- Replace:
- body { ... margin: 20px;
- With
- body { ... margin: 5px;
- NUSOAP:
- -------
- * In file nusoap.php, to avoid a warning,
- Replace
- if (isset($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) {
- By
- if (! is_array($this->methodreturn) && isset($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) {
- * In file nusoap.php, to avoid a warning,
- Replace call to serialize_val with no bugged value
- TCPDF:
- ------
- * To avoid to have QRcode changed because generated with a random mask, replace
- define('QR_FIND_FROM_RANDOM', 2);
- with
- define('QR_FIND_FROM_RANDOM', false);
- * Removed useless directories ("examples", "tools")
- * Fix
- // initialize subsetchars
- $subsetchars = array();
- into
- // initialize subsetchars
- $subsetchars = array_fill(0, 256, true);
- * Replace the continue into switch with a break:
- case 're': {
- // justify block
- if (!TCPDF_STATIC::empty_string($this->lispacer)) {
- $this->lispacer = '';
- continue;
- }
- into
- case 're': {
- // justify block
- if (!TCPDF_STATIC::empty_string($this->lispacer)) {
- $this->lispacer = '';
- break;
- }
- * Optionnaly, removed all fonts except
- dejavusans* (used by greek, arab, persan, romanian, turkish),
- freemono* (russian),
- cid*+msungstdlight+stsongstdlight+uni2cid* (chinese),
- helvetica* (all other languages),
- zapfdingbats.php (for special chars like form checkboxes)
- * Optionnaly, made freemono the default monotype font because we removed courier
- In htdocs/includes/tcpdf/tcpdf.php
- - protected $default_monospaced_font = 'courier';
- + protected $default_monospaced_font = 'freemono';
-
- TCPDI:
- ------
- Add fpdf_tpl.php 1.2
- Add tcpdi.php
- Add tcpdi_parser.php and replace:
- require_once(dirname(__FILE__).'/include/tcpdf_filters.php');
- with:
- require_once(dirname(__FILE__).'/../tecnickcom/tcpdf/include/tcpdf_filters.php');
- * Fix by replacing
- } elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1] >= 2))) {
- with
- } elseif (($key == '/Index') AND ($v[0] == PDF_TYPE_ARRAY AND count($v[1]) >= 2)) {
- JSGANTT:
- --------
- * Replace in function JSGantt.taskLink
- var OpenWindow=window.open(pRef, "newwin", "height="+vHeight+",width="+vWidth);
- with
- // LDR To open in same window
- //var OpenWindow=window.open(pRef, "newwin", "height="+vHeight+",width="+vWidth);
- window.location.href=pRef
- * Replace
- vTmpDiv=this.newNode(vTmpCell, 'div', null, null, vTaskList[i].getResource());
- with
- var vTmpNode=this.newNode(vTmpCell, 'div', null, '');
- vTmpNode=this.newNode(vTmpNode, 'a', null, '', vLangs[vLang]['moreinfo']);
- vTmpNode.setAttribute('href',vTaskList[i].getLink());
-
- * Replace '% Comp.' to have a smaller text column header
- 'comp':'% Comp.'
- with
- 'comp':'%'
- JCROP:
- ------
- * Remove analytics tag into file index.html
- JQUERYFILETREE:
- ---------------
- * Remove directory htdocs/includes/jquery/plugins/jqueryFileTree/connectors
- RESTLER:
- --------
- * Add 2 lines into file AutoLoader.php to complete function
- private function alias($className, $currentClass)
- {
- ...
- to get
- private function alias($className, $currentClass)
- {
- if ($className == 'Luracast\Restler\string') return;
- if ($className == 'Luracast\Restler\mixed') return;
- ...
- Change also file Luracast/Restler/explorer/index.html
- +With swagger 2:
- * Add line into Util.php to complete function
- public static function getShortName($className)
- {
- // @CHANGE LDR
- if (! is_string($className)) return;
- //var_dump($className);
-
-
- PARSEDOWN
- ---------
- * Add support of css by adding in Parsedown.php:
- // @CHANGE LDR
- 'class' => $Link['element']['attributes']['class']
- ...
-
- // @CHANGE LDR
- if (preg_match('/{([^}]+)}/', $remainder, $matches2))
- {
- $Element['attributes']['class'] = $matches2[1];
- $remainder = preg_replace('/{'.preg_quote($matches2[1],'/').'}/', '', $remainder);
- }
- // @CHANGE LDR
- //$markup .= $this->{$Element['handler']}($Element['text']);
- $markup .= preg_replace('/>{[^}]+}/', '>', $this->{$Element['handler']}($Element['text']));
- * Fix to avoid fatal error when mb_strlen not available:
- // @CHANGE LDR Fix when mb_strlen is not available
- //$shortage = 4 - mb_strlen($line, 'utf-8') % 4;
- if (function_exists('mb_strlen')) $len = mb_strlen($line, 'utf-8');
- else $len = strlen($line);
- $shortage = 4 - $len % 4;
- JEDITABLE.JS
- ------------
- * <button type="submit" /> => <button class="button" type="submit" />
- * <button type="cancel" /> => <button class="button" type="cancel" />
|