fix: add missing NoCSRFRequired import in CssController (#397)
This commit is contained in:
parent
45c7bd361f
commit
788affe386
2 changed files with 6 additions and 1 deletions
|
|
@ -144,7 +144,11 @@ class Application extends App implements IBootstrap
|
|||
$cache = $this->config->getAppValue(self::APP_ID, 'cache', '0');
|
||||
|
||||
foreach ($assets as $value) {
|
||||
$route = \OC::$server->getURLGenerator()->linkToRoute($value['route'], ['v' => $cache]);
|
||||
$route = \OC::$server->getURLGenerator()->linkToRoute(
|
||||
$value['route'],
|
||||
['v' => $cache]
|
||||
);
|
||||
|
||||
$value['attr'][$value['route_attr']] = $route;
|
||||
|
||||
Util::addHeader($value['type'], $value['attr'], '');
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ use OCA\SideMenu\Service\ConfigProxy;
|
|||
use OCA\Theming\ThemingDefaults;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
||||
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
||||
use OCP\AppFramework\Http\Attribute\PublicPage;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IRequest;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue