Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Variables
exceptions.php File Reference

Go to the source code of this file.

Variables

 $emails
 This is an optional script used to override Elgg's default handling of uncaught exceptions. More...
 
 $url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']
 
 $subject = "Exception: $url"
 
 $message = $exception->getMessage()
 
foreach($emails as $email$html
 

Variable Documentation

$emails
Initial value:
= array(
'admin@example.com',
'expert@example.com'
)

This is an optional script used to override Elgg's default handling of uncaught exceptions.

This is defined in the global $CONFIG->exception_include in settings.php

The script will have access to the following variables as part of the scope global $CONFIG $exception - the unhandled exception

Warning
- the database may not be available

Definition at line 19 of file exceptions.php.

foreach ($emails as $email) $html
Initial value:
= <<<HTML
<html>
<body>
Oops, a problem occurred. The authorities have been notified.
Sorry for the inconvenience.
</body>
</html>
HTML
body
Definition: admin.css.php:36
html
Definition: admin.css.php:36
ui autocomplete a
Definition: forms.css.php:258

Definition at line 34 of file exceptions.php.

$message = $exception->getMessage()

Definition at line 26 of file exceptions.php.

$subject = "Exception: $url"

Definition at line 25 of file exceptions.php.

$url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']

Definition at line 24 of file exceptions.php.