Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
c272a9e1
Commit
c272a9e1
authored
May 18, 2016
by
Son Nguyen
Committed by
Gerrit Code Review
May 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bug 1577259: fix dynamic property references in dwoo for php7" into 16.04_STABLE
parents
97fd0038
65af6c8c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
htdocs/lib/dwoo/README.Mahara
htdocs/lib/dwoo/README.Mahara
+1
-1
htdocs/lib/dwoo/dwoo/Dwoo/Core.php
htdocs/lib/dwoo/dwoo/Dwoo/Core.php
+5
-5
No files found.
htdocs/lib/dwoo/README.Mahara
View file @
c272a9e1
...
...
@@ -8,4 +8,4 @@ This library is used for all the templating.
Changes:
*
None
*
Make dwoo PHP7 compatable by fixing dynamic property references
htdocs/lib/dwoo/dwoo/Dwoo/Core.php
View file @
c272a9e1
...
...
@@ -1261,8 +1261,8 @@ class Dwoo_Core
return
null
;
}
}
else
{
if
(
is_object
(
$data
)
&&
(
$safeRead
===
false
||
isset
(
$data
->
$m
[
2
][
$k
])))
{
$data
=
$data
->
$m
[
2
][
$k
];
if
(
is_object
(
$data
)
&&
(
$safeRead
===
false
||
isset
(
$data
->
{
$m
[
2
][
$k
]
}
)))
{
$data
=
$data
->
{
$m
[
2
][
$k
]
}
;
}
else
{
return
null
;
}
...
...
@@ -1434,7 +1434,7 @@ class Dwoo_Core
}
}
elseif
(
$sep
===
'->'
)
{
if
(
is_object
(
$cur
))
{
$cur
=
$cur
->
$m
[
2
][
$k
];
$cur
=
$cur
->
{
$m
[
2
][
$k
]
}
;
}
else
{
return
null
;
}
...
...
@@ -1480,7 +1480,7 @@ class Dwoo_Core
if
(
is_object
(
$cur
)
===
false
)
{
$cur
=
new
stdClass
;
}
$cur
=&
$cur
->
$m
[
2
][
$k
];
$cur
=&
$cur
->
{
$m
[
2
][
$k
]
}
;
}
else
{
return
false
;
}
...
...
@@ -1495,7 +1495,7 @@ class Dwoo_Core
if
(
is_object
(
$cur
)
===
false
)
{
$cur
=
new
stdClass
;
}
$cur
->
$last
[
1
]
=
$value
;
$cur
->
{
$last
[
1
]
}
=
$value
;
}
else
{
return
false
;
}
...
...
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