Commit b5096a58 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Pass exporter links to static method by reference when exporting comments (bug #606182)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 4e1830ff
......@@ -312,10 +312,14 @@ class PluginExportLeap extends PluginExport {
foreach (plugins_installed('artefact') as $plugin) {
$classname = 'LeapExportElement' . ucfirst($plugin->name);
if (is_callable($classname . '::setup_links')) {
call_static_method(
$classname,
'setup_links',
$this->links,
// You must explicitly pass variables by reference when calling
// call_user_func, or else they get copied automatically.
// Using a dummy variable here to avoid the "Call time pass by reference
// is deprecated" warning that php displays on the screen.
$dummyref =& $this->links;
call_user_func(
array($classname, 'setup_links'),
$dummyref,
array_keys($this->views),
array_keys($this->artefacts)
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment