Make theming work with pretty URLs

In some envs the rewrite rules for pretty URLs apply to all CSS files, so let's not end the route name with that etension.
Fixes #315
This commit is contained in:
oparoz 2016-07-11 14:08:25 +02:00
parent d15fd5cb96
commit 839ee5eac1
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ namespace OCA\Theming\AppInfo;
],
[
'name' => 'Theming#getStylesheet',
'url' => '/styles.css',
'url' => '/styles',
'verb' => 'GET',
],
[

View file

@ -234,7 +234,7 @@ class ThemingController extends Controller {
\OC_Response::setExpiresHeader(gmdate('D, d M Y H:i:s', time() + (60*60*24*45)) . ' GMT');
\OC_Response::enableCaching();
$response = new Http\DataDownloadResponse($responseCss, 'style.css', 'text/css');
$response = new Http\DataDownloadResponse($responseCss, 'style', 'text/css');
$response->cacheFor(3600);
return $response;
}