Elgg  Version 4.3
deprecated-4.0.php
Go to the documentation of this file.
1 <?php
7 
23 function forward($location = "", $reason = 'system') {
24  elgg_deprecated_notice(__METHOD__ . ' has been deprecated, use \Elgg\Exceptions\HttpException or elgg_redirect_response()', '4.0');
25  if (headers_sent($file, $line)) {
26  throw new SecurityException("Redirect could not be issued due to headers already being sent. Halting execution for security. "
27  . "Output started in file $file at line $line. Search http://learn.elgg.org/ for more information.");
28  }
29 
30  _elgg_services()->responseFactory->redirect($location, $reason);
31  exit;
32 }
elgg_deprecated_notice(string $msg, string $dep_version)
Log a notice about deprecated use of a function, view, etc.
Definition: deprecation.php:52
Throw when a Security Exception occurs.
$location
Definition: member.php:29
forward($location="", $reason= 'system')
Forward to $location.
_elgg_services()
Get the global service provider.
Definition: elgglib.php:638