This topic was marked solved by its starter, on June 1st, 2013, 06:24 AM

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Buffer hook does not load plugin files
« 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]);
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial