[3.0.5] Hooks not overloading the same class
Submitted teraßyte, Jan 12 2010 04:16 PM | Last updated Jun 01 2010 10:25 AM
This fix is needed for those that install several hooks on their boards that overload the same class and because of a bug only 1 hook is executed instead of all.
Open the file "admin/sources/base/ipsController.php" and find:
Some lines below find:
If you are not comfortable in doing those edits manually download this file and replace it on your server; note that this file is for 3.0.5 only, if you have another version use the manual patch above.
305_hooks_patch.zip 3.41KB
231 downloads
Open the file "admin/sources/base/ipsController.php" and find:
$classname = $classOverloader['className'];Replace With:
$classToOverload = $classOverloader['className'];
Some lines below find:
IPSDebug::setMemoryDebugFlag( "Controller getCommand executed" );Add Below:
$classname = $classToOverload ? $classToOverload : $classname;
If you are not comfortable in doing those edits manually download this file and replace it on your server; note that this file is for 3.0.5 only, if you have another version use the manual patch above.
305_hooks_patch.zip 3.41KB
231 downloads











0 Comments