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
fusiondirectory
fusiondirectory
Commits
31c4be85
Commit
31c4be85
authored
Feb 07, 2017
by
Côme Chilliet
Browse files
Fixes
#5357
Moved mergeObjectClasses in plugin for 1.0.19
parent
5300bda0
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/class_plugin.inc
View file @
31c4be85
...
@@ -252,6 +252,12 @@ class plugin
...
@@ -252,6 +252,12 @@ class plugin
}
}
}
}
/* Used by prepare_save and template::apply */
public
function
mergeObjectClasses
(
array
$oc
)
{
return
array_merge_unique
(
$oc
,
$this
->
objectclasses
);
}
protected
function
templateLoadAttrs
(
$template_attrs
)
protected
function
templateLoadAttrs
(
$template_attrs
)
{
{
$this
->
is_template
=
TRUE
;
$this
->
is_template
=
TRUE
;
...
...
include/simpleplugin/class_simplePlugin.inc
View file @
31c4be85
...
@@ -657,12 +657,6 @@ class simplePlugin extends plugin
...
@@ -657,12 +657,6 @@ class simplePlugin extends plugin
$this
->
post_save
();
$this
->
post_save
();
}
}
/* Used by prepare_save and template::apply */
public
function
mergeObjectClasses
(
array
$oc
)
{
return
array_merge_unique
(
$oc
,
$this
->
objectclasses
);
}
protected
function
prepare_save
()
protected
function
prepare_save
()
{
{
/* Call parents save to prepare $this->attrs */
/* Call parents save to prepare $this->attrs */
...
...
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