mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-17 07:10:48 +03:00
Fix hook`s name generation for plugins
This commit is contained in:
parent
88c48c7bda
commit
ad5fb21699
|
@ -268,6 +268,7 @@ class Engine extends Object {
|
|||
foreach ($aFiles as $sFile) {
|
||||
if (preg_match("/Hook([\w]+)\.class\.php$/i",basename($sFile),$aMatch)) {
|
||||
require_once($sFile);
|
||||
$sPluginName = ucfirst($sPluginName);
|
||||
$sClassName="Plugin{$sPluginName}_Hook{$aMatch[1]}";
|
||||
$oHook=new $sClassName;
|
||||
$oHook->RegisterHook();
|
||||
|
|
Loading…
Reference in a new issue