Revision 1489
Added by DarkViper about 14 years ago
| globalExceptionHandler.php | ||
|---|---|---|
| 23 | 23 |
class IllegalFileException extends LogicException {
|
| 24 | 24 |
|
| 25 | 25 |
public function __toString() {
|
| 26 |
$file = str_replace(dirname(dirname(__FILE__)), '', $e->getFile());
|
|
| 26 |
$file = str_replace(dirname(dirname(__FILE__)), '', $this->getFile());
|
|
| 27 | 27 |
$out = '<div style="color: #ff0000; text-align: center;"><br /><br /><br /><h1>Illegale file access</h1>'; |
| 28 | 28 |
$out .= '<h2>'.$file.'</h2></div>'; |
| 29 | 29 |
return $out; |
Also available in: Unified diff
little fix in globalExceptionHandler