Added XF CSRF compatibility
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user