mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Replaced goaway() with System::redirectTo()
This commit is contained in:
parent
a95606a10a
commit
3d3a11fa46
5 changed files with 13 additions and 8 deletions
|
@ -54,6 +54,7 @@ use Friendica\Core\Hook;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
|
||||
function blackout_install() {
|
||||
Hook::register('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
|
||||
|
@ -86,8 +87,8 @@ function blackout_redirect ($a, $b) {
|
|||
$date2 = 0;
|
||||
}
|
||||
if (( $date1 <= $now ) && ( $now <= $date2 )) {
|
||||
Logger::log('redirecting user to blackout page');
|
||||
System::externalRedirect($myurl);
|
||||
logger('redirecting user to blackout page');
|
||||
System::redirectTo($myurl);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue