Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
176
Issues
176
List
Boards
Labels
Service Desk
Milestones
Merge Requests
38
Merge Requests
38
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
ca2a7d56df3898fa83acb14e2051f91060771267...4f056092a5e333f371d5ffdf236e3dd12e39de40
Source
4f056092a5e333f371d5ffdf236e3dd12e39de40
Select Git revision
...
Target
ca2a7d56df3898fa83acb14e2051f91060771267
Select Git revision
Compare
Commits (2)
(fix) exporting allow comments so its boolean
· 47c9459a
Brian Hatchet
authored
16 minutes ago
47c9459a
Merge branch 'feat/disable-comments-526' into 'master'
· 4f056092
Mark Harding
authored
16 minutes ago
(fix) exporting allow comments so its boolean See merge request
!277
4f056092
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
ElggEntity.php
classes/ElggEntity.php
+12
-11
No files found.
classes/ElggEntity.php
View file @
4f056092
...
...
@@ -1377,18 +1377,19 @@ abstract class ElggEntity extends ElggData implements
);
}
public
function
export
(){
$export
=
array
();
foreach
(
$this
->
getExportableValues
()
as
$v
)
{
if
(
!
is_null
(
$this
->
$v
))
{
$export
[
$v
]
=
$this
->
$v
;
}
}
$export
=
array_merge
(
$export
,
\Minds\Core\Events\Dispatcher
::
trigger
(
'export:extender'
,
'all'
,
array
(
'entity'
=>
$this
),
[])
?:
[]);
public
function
export
(){
$export
=
array
();
foreach
(
$this
->
getExportableValues
()
as
$v
)
{
if
(
!
is_null
(
$this
->
$v
))
{
$export
[
$v
]
=
$this
->
$v
;
}
}
$export
=
array_merge
(
$export
,
\Minds\Core\Events\Dispatcher
::
trigger
(
'export:extender'
,
'all'
,
array
(
'entity'
=>
$this
),
[])
?:
[]);
$export
=
\Minds\Helpers\Export
::
sanitize
(
$export
);
$export
[
'nsfw'
]
=
$this
->
getNsfw
();
$export
[
'nsfw'
]
=
$this
->
getNsfw
();
$export
[
'nsfw_lock'
]
=
$this
->
getNsfwLock
();
$export
[
'urn'
]
=
$this
->
getUrn
();
$export
[
'urn'
]
=
$this
->
getUrn
();
$export
[
'allow_comments'
]
=
$this
->
getAllowComments
();
return
$export
;
}
...
...
@@ -1673,6 +1674,6 @@ abstract class ElggEntity extends ElggData implements
* Gets the flag for allowing comments on an entity
*/
public
function
getAllowComments
()
{
return
$this
->
allow_comments
;
return
(
bool
)
$this
->
allow_comments
;
}
}
This diff is collapsed.
Click to expand it.