Fix use command standard @... to mark a change in official code
This commit is contained in:
parent
1ef70b387d
commit
4582b54e91
@ -221,7 +221,7 @@ class SMTPs
|
|||||||
var $_debug = false;
|
var $_debug = false;
|
||||||
|
|
||||||
|
|
||||||
// DOL_CHANGE LDR
|
// @CHANGE LDR
|
||||||
var $log = '';
|
var $log = '';
|
||||||
var $_errorsTo = '';
|
var $_errorsTo = '';
|
||||||
var $_deliveryReceipt = 0;
|
var $_deliveryReceipt = 0;
|
||||||
@ -361,7 +361,7 @@ class SMTPs
|
|||||||
$host=preg_replace('@tcp://@i','',$host); // Remove prefix
|
$host=preg_replace('@tcp://@i','',$host); // Remove prefix
|
||||||
$host=preg_replace('@ssl://@i','',$host); // Remove prefix
|
$host=preg_replace('@ssl://@i','',$host); // Remove prefix
|
||||||
|
|
||||||
// DOL_CHANGE LDR
|
// @CHANGE LDR
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
|
|
||||||
if ( (! is_ip($host)) && ((gethostbyname($host)) == $host))
|
if ( (! is_ip($host)) && ((gethostbyname($host)) == $host))
|
||||||
@ -393,7 +393,7 @@ class SMTPs
|
|||||||
// This connection attempt failed.
|
// This connection attempt failed.
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// DOL_CHANGE LDR
|
// @CHANGE LDR
|
||||||
if (empty($this->errstr)) $this->errstr='Failed to connect with fsockopen host='.$this->getHost().' port='.$this->getPort();
|
if (empty($this->errstr)) $this->errstr='Failed to connect with fsockopen host='.$this->getHost().' port='.$this->getPort();
|
||||||
$this->_setErr($this->errno, $this->errstr);
|
$this->_setErr($this->errno, $this->errstr);
|
||||||
$_retVal = false;
|
$_retVal = false;
|
||||||
@ -1093,7 +1093,7 @@ class SMTPs
|
|||||||
{
|
{
|
||||||
foreach ( $this->_msgRecipients[$_host][$_which] as $_addr => $_realName )
|
foreach ( $this->_msgRecipients[$_host][$_which] as $_addr => $_realName )
|
||||||
{
|
{
|
||||||
if ( $_realName ) // DOL_CHANGE LDR
|
if ( $_realName ) // @CHANGE LDR
|
||||||
{
|
{
|
||||||
$_realName = '"' . $_realName . '"';
|
$_realName = '"' . $_realName . '"';
|
||||||
$_RCPT_list[] = $_realName . ' <' . $_addr . '@' . $_host . '>';
|
$_RCPT_list[] = $_realName . ' <' . $_addr . '@' . $_host . '>';
|
||||||
@ -1270,7 +1270,7 @@ class SMTPs
|
|||||||
$_header .= $this->getPriority();
|
$_header .= $this->getPriority();
|
||||||
|
|
||||||
|
|
||||||
// DOL_CHANGE LDR
|
// @CHANGE LDR
|
||||||
if ( $this->getDeliveryReceipt() )
|
if ( $this->getDeliveryReceipt() )
|
||||||
$_header .= 'Disposition-Notification-To: '.$this->getFrom('addr') . "\r\n";
|
$_header .= 'Disposition-Notification-To: '.$this->getFrom('addr') . "\r\n";
|
||||||
if ( $this->getErrorsTo() )
|
if ( $this->getErrorsTo() )
|
||||||
@ -1414,7 +1414,7 @@ class SMTPs
|
|||||||
$content .= "\r\n" . $_data['data'] . "\r\n\r\n";
|
$content .= "\r\n" . $_data['data'] . "\r\n\r\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// DOL_CHANGE LDR
|
// @CHANGE LDR
|
||||||
else if ( $type == 'image' )
|
else if ( $type == 'image' )
|
||||||
{
|
{
|
||||||
// loop through all images
|
// loop through all images
|
||||||
@ -1521,7 +1521,7 @@ class SMTPs
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// DOL_CHANGE LDR
|
// @CHANGE LDR
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Image attachments are added to the content array as sub-arrays,
|
* Image attachments are added to the content array as sub-arrays,
|
||||||
@ -1546,7 +1546,7 @@ class SMTPs
|
|||||||
$this->_msgContent['image'][$strImageName]['md5'] = dol_hash($strContent, 3);
|
$this->_msgContent['image'][$strImageName]['md5'] = dol_hash($strContent, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// END DOL_CHANGE LDR
|
// END @CHANGE LDR
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1740,7 +1740,7 @@ class SMTPs
|
|||||||
*/
|
*/
|
||||||
function socket_send_str( $_strSend, $_returnCode = null, $CRLF = "\r\n" )
|
function socket_send_str( $_strSend, $_returnCode = null, $CRLF = "\r\n" )
|
||||||
{
|
{
|
||||||
if ($this->_debug) $this->log.=$_strSend; // DOL_CHANGE LDR for log
|
if ($this->_debug) $this->log.=$_strSend; // @CHANGE LDR for log
|
||||||
fputs($this->socket, $_strSend . $CRLF);
|
fputs($this->socket, $_strSend . $CRLF);
|
||||||
if ($this->_debug) $this->log.=' ('.$_returnCode.')' . $CRLF;
|
if ($this->_debug) $this->log.=' ('.$_returnCode.')' . $CRLF;
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@ $text_color=Array(0,0,0);
|
|||||||
/* ******************************************************************** */
|
/* ******************************************************************** */
|
||||||
if (defined('DOL_DEFAULT_TTF_BOLD')) $font_loc=constant('DOL_DEFAULT_TTF_BOLD');
|
if (defined('DOL_DEFAULT_TTF_BOLD')) $font_loc=constant('DOL_DEFAULT_TTF_BOLD');
|
||||||
// Automatic-Detection of Font if running Windows
|
// Automatic-Detection of Font if running Windows
|
||||||
// DOL_CHANGE LDR
|
// @CHANGE LDR
|
||||||
if (isset($_SERVER['WINDIR']) && @file_exists($_SERVER['WINDIR'])) $font_loc=$_SERVER['WINDIR'].'\Fonts\arialbd.ttf';
|
if (isset($_SERVER['WINDIR']) && @file_exists($_SERVER['WINDIR'])) $font_loc=$_SERVER['WINDIR'].'\Fonts\arialbd.ttf';
|
||||||
if (empty($font_loc)) die('DOL_DEFAULT_TTF_BOLD must de defined with full path to a TTF font.');
|
if (empty($font_loc)) die('DOL_DEFAULT_TTF_BOLD must de defined with full path to a TTF font.');
|
||||||
|
|
||||||
|
|||||||
@ -263,7 +263,7 @@ class AutoLoader
|
|||||||
* @return bool false unless className now exists
|
* @return bool false unless className now exists
|
||||||
*/
|
*/
|
||||||
private function loadLastResort($className, $loader = null) {
|
private function loadLastResort($className, $loader = null) {
|
||||||
// DOL_CHANGE LDR Add protection to avoid conflict with other autoloader
|
// @CHANGE LDR Add protection to avoid conflict with other autoloader
|
||||||
/*print 'Try to load '.$className."\n";
|
/*print 'Try to load '.$className."\n";
|
||||||
if (in_array($className, array('Google_Client')))
|
if (in_array($className, array('Google_Client')))
|
||||||
{
|
{
|
||||||
@ -307,7 +307,7 @@ class AutoLoader
|
|||||||
*/
|
*/
|
||||||
private function alias($className, $currentClass)
|
private function alias($className, $currentClass)
|
||||||
{
|
{
|
||||||
// DOL_CHANGE LDR
|
// @CHANGE LDR
|
||||||
if ($className == 'Luracast\Restler\string') return;
|
if ($className == 'Luracast\Restler\string') return;
|
||||||
if ($className == 'Luracast\Restler\mixed') return;
|
if ($className == 'Luracast\Restler\mixed') return;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Api Explorer</title>
|
<title>Api Explorer</title>
|
||||||
<!-- DOL_CHANGE LDR Remove external links <link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>-->
|
<!-- @CHANGE LDR Remove external links <link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>-->
|
||||||
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
|
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||||
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
|
||||||
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
|
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
|
||||||
@ -59,7 +59,7 @@
|
|||||||
var key = $('#input_apiKey')[0].value;
|
var key = $('#input_apiKey')[0].value;
|
||||||
log("key: " + key);
|
log("key: " + key);
|
||||||
if(key && key.trim() != "") {
|
if(key && key.trim() != "") {
|
||||||
/* DOL_CHANGE LDR We set DOLAPIKEY into header */
|
/* @CHANGE LDR We set DOLAPIKEY into header */
|
||||||
log("added key " + key);
|
log("added key " + key);
|
||||||
|
|
||||||
/* Disabled for security reason. We keep only param in header
|
/* Disabled for security reason. We keep only param in header
|
||||||
@ -87,7 +87,7 @@
|
|||||||
<div class="swagger-ui-wrap">
|
<div class="swagger-ui-wrap">
|
||||||
<a id="logo" href="#">API Explorer</a>
|
<a id="logo" href="#">API Explorer</a>
|
||||||
<form id='api_selector'>
|
<form id='api_selector'>
|
||||||
<!-- DOL_CHANGE LDR
|
<!-- @CHANGE LDR
|
||||||
<div class='input icon-btn'>
|
<div class='input icon-btn'>
|
||||||
<img id="show-pet-store-icon" src="images/pet_store_api.png" title="Show Swagger Petstore Example Apis">
|
<img id="show-pet-store-icon" src="images/pet_store_api.png" title="Show Swagger Petstore Example Apis">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1539,7 +1539,7 @@ helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
|
|||||||
}
|
}
|
||||||
$('.toggleEndpointList', this.el).click(this.callDocs.bind(this, 'toggleEndpointListForResource'));
|
$('.toggleEndpointList', this.el).click(this.callDocs.bind(this, 'toggleEndpointListForResource'));
|
||||||
$('.collapseResource', this.el).click(this.callDocs.bind(this, 'collapseOperationsForResource'));
|
$('.collapseResource', this.el).click(this.callDocs.bind(this, 'collapseOperationsForResource'));
|
||||||
/* DOL_CHANGE LDR Fix typo error that break expand */
|
/* @CHANGE LDR Fix typo error that break expand */
|
||||||
$('.expandResource', this.el).click(this.callDocs.bind(this, 'expandOperationsForResource'));
|
$('.expandResource', this.el).click(this.callDocs.bind(this, 'expandOperationsForResource'));
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user