Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
package-bricks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QUIQQER
package-bricks
Commits
f7fe0386
Commit
f7fe0386
authored
Oct 15, 2019
by
Henning Leutz
🥋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fnmatch() expects parameter 2 to be a valid path, array given
parent
95eb345c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/QUI/Bricks/Brick.php
src/QUI/Bricks/Brick.php
+7
-3
No files found.
src/QUI/Bricks/Brick.php
View file @
f7fe0386
...
...
@@ -538,9 +538,13 @@ class Brick extends QUI\QDOM
*/
public
function
hasCSSClass
(
$pattern
)
{
if
(
$this
->
getAttribute
(
'classes'
)
&&
\
fnmatch
(
$pattern
,
$this
->
getAttribute
(
'classes'
))
)
{
$cssClasses
=
$this
->
getAttribute
(
'classes'
);
if
(
\
is_array
(
$cssClasses
))
{
$cssClasses
=
\
implode
(
' '
,
$cssClasses
);
}
if
(
$cssClasses
&&
\
fnmatch
(
$pattern
,
$cssClasses
))
{
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment