Panels uses ctools_css_add_css() to add CSS for any file that's within the Drupal directory. It's only necessary to use this when the file is in the files directory.
Due to the current check, I was seeing 404s from CSS declarations like this when using private files.
<link type="text/css" rel="stylesheet" media="all" href="http://example.com/system/files/sites/all/modules/contrib/panels/plugins/layouts/onecol/onecol.css" />
This check could possibly be centralized in ctools_css_add_css(), however wondered why the check was being done outside the function in the first place, so starting here.
Comments
Comment #1
lazly commentedI confirming it, the patch is correct but dont fix the problem for me. I have error 403 if i wanna open the generated css file directly with private filesystem. Have you got any other idea?
Comment #2
Letharion commentedComment #3
nasi commentedJust to confirm, I have come across this problem as well, trying to use private files and the bricks_2col layout - the twocol_bricks.css file fails to load.
Comment #4
Letharion commentedJust noting that I assigned this to merlin since he should probably take a look at the logic, there could very well be a good reason for the current logic.
Comment #5
dstolComment #6
damienmckennaComment #7
vijaycs85We can't remove $path as it is used in other case.
Comment #8
japerryAppears to work well. Fixed.