Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
b6087ea7
Commit
b6087ea7
authored
10 years ago
by
Victor Dubiniuk
Browse files
Options
Downloads
Patches
Plain Diff
Add CssImportFilter. More elegant fix for documents#348
parent
a6293a38
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/templatelayout.php
+10
-1
10 additions, 1 deletion
lib/private/templatelayout.php
with
10 additions
and
1 deletion
lib/private/templatelayout.php
+
10
−
1
View file @
b6087ea7
...
...
@@ -3,6 +3,7 @@ use Assetic\Asset\AssetCollection;
use
Assetic\Asset\FileAsset
;
use
Assetic\AssetWriter
;
use
Assetic\Filter\CssRewriteFilter
;
use
Assetic\Filter\CssImportFilter
;
/**
* Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>
...
...
@@ -167,7 +168,15 @@ class OC_TemplateLayout extends OC_Template {
$assetPath
=
$root
.
'/'
.
$file
;
$sourceRoot
=
\OC
::
$SERVERROOT
;
$sourcePath
=
substr
(
$assetPath
,
strlen
(
\OC
::
$SERVERROOT
));
return
new
FileAsset
(
$assetPath
,
array
(
new
CssRewriteFilter
()),
$sourceRoot
,
$sourcePath
);
return
new
FileAsset
(
$assetPath
,
array
(
new
CssRewriteFilter
(),
new
CssImportFilter
()
),
$sourceRoot
,
$sourcePath
);
},
$cssFiles
);
$cssCollection
=
new
AssetCollection
(
$cssFiles
);
$cssCollection
->
setTargetPath
(
"assets/
$cssHash
.css"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment