core/exceptions/ExceptionStackTraceDisplay.php 1 location
|
@@ 318-324 (lines=7) @@
|
| 315 |
|
* @param string $line |
| 316 |
|
* @return string |
| 317 |
|
*/ |
| 318 |
|
protected function generate_error_code($file = '', $func = '', $line = '') |
| 319 |
|
{ |
| 320 |
|
$file_bits = explode('.', basename($file)); |
| 321 |
|
$error_code = ! empty($file_bits[0]) ? $file_bits[0] : ''; |
| 322 |
|
$error_code .= ! empty($func) ? ' - ' . $func : ''; |
| 323 |
|
$error_code .= ! empty($line) ? ' - ' . $line : ''; |
| 324 |
|
return $error_code; |
| 325 |
|
} |
| 326 |
|
|
| 327 |
|
|
core/EE_Error.core.php 1 location
|
@@ 1052-1058 (lines=7) @@
|
| 1049 |
|
* @param string $line |
| 1050 |
|
* @return string |
| 1051 |
|
*/ |
| 1052 |
|
public static function generate_error_code($file = '', $func = '', $line = '') |
| 1053 |
|
{ |
| 1054 |
|
$file = explode('.', basename($file)); |
| 1055 |
|
$error_code = ! empty($file[0]) ? $file[0] : ''; |
| 1056 |
|
$error_code .= ! empty($func) ? ' - ' . $func : ''; |
| 1057 |
|
$error_code .= ! empty($line) ? ' - ' . $line : ''; |
| 1058 |
|
return $error_code; |
| 1059 |
|
} |
| 1060 |
|
|
| 1061 |
|
|