mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
fixing translation domain to cake_dev
This commit is contained in:
parent
f9f380d401
commit
7418be04d3
1 changed files with 2 additions and 2 deletions
|
@ -310,7 +310,7 @@ class CakeSocket {
|
||||||
*/
|
*/
|
||||||
public function enableCrypto($type, $clientOrServer = 'client', $enable = true) {
|
public function enableCrypto($type, $clientOrServer = 'client', $enable = true) {
|
||||||
if (!array_key_exists($type . '_' . $clientOrServer, $this->_encryptMethods)) {
|
if (!array_key_exists($type . '_' . $clientOrServer, $this->_encryptMethods)) {
|
||||||
throw new InvalidArgumentException(__('Invalid encryption scheme chosen'));
|
throw new InvalidArgumentException(__d('cake_dev', 'Invalid encryption scheme chosen'));
|
||||||
}
|
}
|
||||||
$enableCryptoResult = false;
|
$enableCryptoResult = false;
|
||||||
try {
|
try {
|
||||||
|
@ -323,7 +323,7 @@ class CakeSocket {
|
||||||
$this->encrypted = $enable;
|
$this->encrypted = $enable;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
$errorMessage = __('Unable to perform enableCrypto operation on CakeSocket');
|
$errorMessage = __d('cake_dev', 'Unable to perform enableCrypto operation on CakeSocket');
|
||||||
$this->setLastError(null, $errorMessage);
|
$this->setLastError(null, $errorMessage);
|
||||||
throw new SocketException($errorMessage);
|
throw new SocketException($errorMessage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue