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 <>
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')) {
// 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;
array($classname, 'setup_links'),
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