Commit 1932d334 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1758757: setup_links() expected to be a reference, value given error

We used call_user_func() but i think we need to use
call_user_func_array() for this


Change-Id: I94dad0b59be8bab7ac6b2e1c45a6968ac4ece9fa
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent ba36e509
......@@ -396,16 +396,9 @@ 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'),
array(&$this->links, 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