Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: live627 on May 29th, 2013, 09:20 AM

Title: Buffer hook does not load plugin files
Post by: live627 on May 29th, 2013, 09:20 AM
When a plugin adds a buffer hook, a fatal error happens because it looks for the wrong file.

In obExit(), the offending code is

Code: [Select]
if (!empty($fun[2]) && $fun[2] === 'plugin')
require_once($fun[1] . '.php');

It should be

Code: [Select]
if (!empty($fun[2]))
loadPluginSource($fun[2], $fun[1]);
Title: Re: Buffer hook does not load plugin files
Post by: Arantor on May 30th, 2013, 04:00 AM
Fixed locally (forgot to include it in the last commit), thanks.