Differential D25031 Diff 83 src/applications/badges/xaction/PhabricatorBadgesBadgeFlavorTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/badges/xaction/PhabricatorBadgesBadgeFlavorTransaction.php
Context not available. | |||||
$max_length = $object->getColumnMaximumByteLength('flavor'); | $max_length = $object->getColumnMaximumByteLength('flavor'); | ||||
foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
$new_value = $xaction->getNewValue(); | $new_value = $xaction->getNewValue(); | ||||
$new_length = strlen($new_value); | $new_length = @strlen($new_value); | ||||
if ($new_length > $max_length) { | if ($new_length > $max_length) { | ||||
$errors[] = $this->newRequiredError( | $errors[] = $this->newRequiredError( | ||||
pht('The flavor text can be no longer than %s characters.', | pht('The flavor text can be no longer than %s characters.', | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0