Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
48b8953c
Commit
48b8953c
authored
Jul 13, 2009
by
Ben Bradshaw
Browse files
[#3347] Patching XML Feed Reader 1.0.3 - adding $suppressWarnings fix
previous commit with this fix:
6c29487b
parent
43c907e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/pear/XML/Feed/Parser.php
View file @
48b8953c
...
...
@@ -86,8 +86,13 @@ class XML_Feed_Parser implements Iterator
*/
function
__construct
(
$feed
,
$strict
=
false
,
$suppressWarnings
=
false
,
$tidy
=
false
)
{
$options
=
0
;
if
(
$suppressWarnings
)
{
$options
|=
LIBXML_NOWARNING
;
$options
|=
LIBXML_NOERROR
;
}
$this
->
model
=
new
DOMDocument
;
if
(
!
$this
->
model
->
loadXML
(
$feed
))
{
if
(
!
$this
->
model
->
loadXML
(
$feed
,
$options
))
{
if
(
extension_loaded
(
'tidy'
)
&&
$tidy
)
{
$tidy
=
new
tidy
;
$tidy
->
parseString
(
$feed
,
...
...
Write
Preview
Supports
Markdown
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