core/EE_Error.core.php 1 location
|
@@ 1088-1094 (lines=7) @@
|
| 1085 |
|
* @param string $line |
| 1086 |
|
* @return string |
| 1087 |
|
*/ |
| 1088 |
|
public static function generate_error_code ( $file = '', $func = '', $line = '' ) { |
| 1089 |
|
$file = explode( '.', basename( $file )); |
| 1090 |
|
$error_code = ! empty( $file[0] ) ? $file[0] : ''; |
| 1091 |
|
$error_code .= ! empty( $func ) ? ' - ' . $func : ''; |
| 1092 |
|
$error_code .= ! empty( $line ) ? ' - ' . $line : ''; |
| 1093 |
|
return $error_code; |
| 1094 |
|
} |
| 1095 |
|
|
| 1096 |
|
|
| 1097 |
|
|
core/exceptions/ExceptionStackTraceDisplay.php 1 location
|
@@ 281-287 (lines=7) @@
|
| 278 |
|
* @param string $line |
| 279 |
|
* @return string |
| 280 |
|
*/ |
| 281 |
|
protected function generate_error_code( $file = '', $func = '', $line = '' ) { |
| 282 |
|
$file_bits = explode( '.', basename( $file ) ); |
| 283 |
|
$error_code = ! empty( $file_bits[0] ) ? $file_bits[0] : ''; |
| 284 |
|
$error_code .= ! empty( $func ) ? ' - ' . $func : ''; |
| 285 |
|
$error_code .= ! empty( $line ) ? ' - ' . $line : ''; |
| 286 |
|
return $error_code; |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
|
| 290 |
|
|