mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
refactor: treat sprintf as native function
This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
This commit is contained in:
@@ -150,11 +150,11 @@ class RequestController extends Controller
|
||||
// Auto Shout
|
||||
if ($torrentRequest->anon == 0) {
|
||||
$this->chatRepository->systemMessage(
|
||||
sprintf('[url=%s]%s[/url] has created a new request [url=%s]%s[/url]', href_profile($user), $user->username, href_request($torrentRequest), $torrentRequest->name)
|
||||
\sprintf('[url=%s]%s[/url] has created a new request [url=%s]%s[/url]', href_profile($user), $user->username, href_request($torrentRequest), $torrentRequest->name)
|
||||
);
|
||||
} else {
|
||||
$this->chatRepository->systemMessage(
|
||||
sprintf('An anonymous user has created a new request [url=%s]%s[/url]', href_request($torrentRequest), $torrentRequest->name)
|
||||
\sprintf('An anonymous user has created a new request [url=%s]%s[/url]', href_request($torrentRequest), $torrentRequest->name)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -248,6 +248,6 @@ class RequestController extends Controller
|
||||
$torrentRequest->delete();
|
||||
|
||||
return to_route('requests.index')
|
||||
->withSuccess(sprintf(trans('request.deleted'), $torrentRequest->name));
|
||||
->withSuccess(\sprintf(trans('request.deleted'), $torrentRequest->name));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user