1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 15:57:01 +02:00

Fix issue that was preventing non-local property hooks from working in WireHooks class

This commit is contained in:
Ryan Cramer
2016-12-26 09:31:42 -05:00
parent 622896e028
commit 4e2a3c1bac

View File

@@ -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') {