mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
Fix issue that was preventing non-local property hooks from working in WireHooks class
This commit is contained in:
@@ -295,6 +295,8 @@ class WireHooks {
|
||||
if($type == 'method' || $type == 'either') {
|
||||
if(strpos($method, '(') === false) $method .= '()';
|
||||
if($type == 'either') $property = rtrim($method, '()');
|
||||
} else {
|
||||
$property = rtrim($method, '()');
|
||||
}
|
||||
|
||||
if($type == 'method') {
|
||||
|
Reference in New Issue
Block a user