]> git.mxchange.org Git - friendica.git/blobdiff - mod/register.php
Merge pull request #5830 from nupplaphil/update_from_boot
[friendica.git] / mod / register.php
index 0a139ad7523afd9e580393183f8d6fdce06a4304..73b57124a21613219d5f4363f05991a3eb789f81 100644 (file)
@@ -9,6 +9,7 @@ use Friendica\Content\Text\BBCode;
 use Friendica\Core\Addon;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
+use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
@@ -186,7 +187,7 @@ function register_content(App $a)
        if ($max_dailies) {
                $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day");
                if ($r && $r[0]['total'] >= $max_dailies) {
-                       logger('max daily registrations exceeded.');
+                       Logger::log('max daily registrations exceeded.');
                        notice(L10n::t('This site has exceeded the number of allowed daily account registrations. Please try again tomorrow.') . EOL);
                        return;
                }