mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
wireCount updates per processwire/processwire-issues#408
This commit is contained in:
@@ -404,7 +404,7 @@ class InputfieldForm extends InputfieldWrapper {
|
||||
$matches = false;
|
||||
|
||||
if($subfield == 'count') {
|
||||
$value = count($value);
|
||||
$value = wireCount($value);
|
||||
if(self::debug) $this->debugNote("Actual count ($debugNote): $value");
|
||||
}
|
||||
if(is_object($value)) $value = "$value";
|
||||
|
@@ -61,7 +61,7 @@ class InputfieldMarkup extends InputfieldWrapper {
|
||||
}
|
||||
$out = trim($out);
|
||||
|
||||
if(count($textformatters)) {
|
||||
if(wireCount($textformatters)) {
|
||||
foreach($textformatters as $className) {
|
||||
$t = $this->wire('modules')->get($className);
|
||||
if(!$t) continue;
|
||||
|
Reference in New Issue
Block a user