mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Core Logger
implement log() function. more to squash Core Logger Class implement log() function
This commit is contained in:
parent
b53157370a
commit
49eff56e5d
46 changed files with 348 additions and 302 deletions
|
@ -52,6 +52,7 @@
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
|
||||
function blackout_install() {
|
||||
Addon::registerHook('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
|
||||
|
@ -84,7 +85,7 @@ function blackout_redirect ($a, $b) {
|
|||
$date2 = 0;
|
||||
}
|
||||
if (( $date1 <= $now ) && ( $now <= $date2 )) {
|
||||
logger('redirecting user to blackout page');
|
||||
Logger::log('redirecting user to blackout page');
|
||||
System::externalRedirect($myurl);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue