Elgg  Version 6.0
exception.php
Go to the documentation of this file.
1 <?php
10  echo elgg_view('messages/exceptions/admin_exception', $vars);
11  return;
12 }
13 
15 if (!$exception instanceof Throwable) {
16  return;
17 }
18 
19 $result = new stdClass();
20 $result->error = get_class($exception);
21 
22 echo json_encode($result);
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
Definition: sessions.php:52
if(!$exception instanceof Throwable) $result
Definition: exception.php:19
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
if(elgg_is_admin_logged_in()) $exception
Elgg JSON exception Displays a single exception.
Definition: exception.php:14
$vars
Definition: theme.php:5