Commit e2185c2e authored by Richard Mansfield's avatar Richard Mansfield Committed by Penny Leach
Browse files

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

Signed-off-by: default avatarRichard Mansfield <>
parent cad1c37e
......@@ -318,10 +318,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'),
Supports Markdown
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