Skip to content

Commit

Permalink
Update update.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis authored Apr 3, 2024
1 parent 75a15b6 commit 478ba4f
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions update.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
<?php

/**
* Ensures rex_api_quicknavigation_render is available on update
* API function for rendering the quick navigation menu.
*/
class rex_api_quicknavigation_render
class rex_api_quicknavigation_render extends rex_api_function
{
/**
* dummy for updates
* Executes the API function and sends the quick navigation HTML as the response.
*
* @return string
* @return void
*/
public static function getUrlParams(): string
public function execute(): void
{
return '';
rex_response::sendContent(QuickNavigation::get(), 'text/html');
exit;
}

/**
* Indicates that this API function does not require CSRF protection.
*
* @return bool
*/
public function requiresCsrfProtection()
{
return false;
}
}

0 comments on commit 478ba4f

Please sign in to comment.