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