Added XF CSRF compatibility

This commit is contained in:
2026-05-25 12:23:10 +02:00
parent 250509055b
commit b361f07954
5 changed files with 27 additions and 3 deletions

View File

@@ -1,8 +1,13 @@
<?php
if( !function_exists( 'xfRoute' ) ){
function xfRoute( string $routeName, array $arguments = [] ): string {
return app(\App\Services\XenforoService::class)->getRoute( $routeName, $arguments );
}
}
if( !function_exists( 'xfCsrfToken') ){
function xfCsrfToken(): string {
return app(\App\Services\XenforoService::class)->getCSRFToken();
}
}