Skip to content

Commit

Permalink
[fr][ja][zh] follows cakephp#3583
Browse files Browse the repository at this point in the history
  • Loading branch information
cake17 committed Dec 20, 2015
1 parent e069183 commit 28c1ee4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fr/development/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ remplacer comme cela::
class AppError {
public static function handleError($code, $description, $file = null, $line = null, $context = null) {
list(, $level) = ErrorHandler::mapErrorCode($code);
if ($level === LOG_ERROR) {
if ($level === LOG_ERR) {
// Ignore l\'erreur fatale. Cela ne va garder seulement le message d\'erreur PHP
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion ja/development/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ CakePHP 2.2 以降、 ``Error.handler`` は致命的 (fatal) なエラーコー
public static function handleError($code, $description, $file = null,
$line = null, $context = null) {
list(, $level) = ErrorHandler::mapErrorCode($code);
if ($level === LOG_ERROR) {
if ($level === LOG_ERR) {
// 致命的エラーを無視する。PHP エラーのメッセージのみとする。
return false;
}
Expand Down
6 changes: 3 additions & 3 deletions zh/development/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

//in app/Lib/AppError.php
class AppError {
public static function handleError($code, $description, $file = null,
public static function handleError($code, $description, $file = null,
$line = null, $context = null) {
echo 'There has been an error!';
}
Expand Down Expand Up @@ -87,10 +87,10 @@

//in app/Lib/AppError.php
class AppError {
public static function handleError($code, $description, $file = null,
public static function handleError($code, $description, $file = null,
$line = null, $context = null) {
list(, $level) = ErrorHandler::mapErrorCode($code);
if ($level === LOG_ERROR) {
if ($level === LOG_ERR) {
// Ignore fatal error. It will keep the PHP error message only
return false;
}
Expand Down

0 comments on commit 28c1ee4

Please sign in to comment.