Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
simplehtmldom
Commits
4e06f710
Commit
4e06f710
authored
Feb 04, 2014
by
Konstantin Komelin
Browse files
by konstantin.komelin: Added additional check for libraries_get_path function existence.
parent
04d95934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
simplehtmldom.module
simplehtmldom.module
+5
-2
No files found.
simplehtmldom.module
View file @
4e06f710
...
...
@@ -34,8 +34,11 @@ function _simplhtmldom_get_library_path() {
$file
=
'simple_html_dom.php'
;
$library
=
'simplehtmldom'
;
// Support libraries module.
if
(
module_exists
(
'libraries'
)
&&
file_exists
(
libraries_get_path
(
$library
)
.
"/
$file
"
))
{
return
libraries_get_path
(
$library
)
.
"/
$file
"
;
if
(
module_exists
(
'libraries'
)
&&
function_exists
(
'libraries_get_path'
))
{
$path
=
libraries_get_path
(
$library
)
.
"/
$file
"
;
if
(
file_exists
(
$path
))
{
return
$path
;
}
}
else
{
$paths
=
array
(
...
...
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