Elgg  Version 3.0
exception.php
Go to the documentation of this file.
1 <?php
13  echo elgg_view('messages/exceptions/admin_exception', $vars);
14  return;
15 }
16 
18 if (!$exception instanceof Throwable) {
19  return;
20 }
21 
22 $result = new stdClass();
23 $result->error = get_class($exception);
24 
25 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:57
if(!$exception instanceof Throwable) $result
Definition: exception.php:22
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
if(elgg_is_admin_logged_in()) $exception
Definition: exception.php:17
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246