]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make theming work with pretty URLs
authoroparoz <owncloud@interfasys.ch>
Mon, 11 Jul 2016 12:08:25 +0000 (14:08 +0200)
committeroparoz <owncloud@interfasys.ch>
Mon, 11 Jul 2016 12:08:25 +0000 (14:08 +0200)
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

apps/theming/appinfo/routes.php
apps/theming/lib/controller/themingcontroller.php

index ac0463e2c26a28a4a6a84cbe0f2664d15fff5743..dcbb0618fa2189e56716ac7ba4f7ff93b3c4d041 100644 (file)
@@ -40,7 +40,7 @@ namespace OCA\Theming\AppInfo;
        ],
        [
                'name' => 'Theming#getStylesheet',
-               'url' => '/styles.css',
+               'url' => '/styles',
                'verb' => 'GET',
        ],
        [
index 995f929b510c76ef9e8732050bccb7888927eb20..a9ac36ca786705820b32941212ae9839edbe4c04 100644 (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;
        }