includes/htmlform/HTMLFormField.php 1 location
|
@@ 307-312 (lines=6) @@
|
| 304 |
|
return true; |
| 305 |
|
} |
| 306 |
|
|
| 307 |
|
if ( isset( $this->mParams['required'] ) |
| 308 |
|
&& $this->mParams['required'] !== false |
| 309 |
|
&& $value === '' |
| 310 |
|
) { |
| 311 |
|
return $this->msg( 'htmlform-required' )->parse(); |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
if ( isset( $this->mValidationCallback ) ) { |
| 315 |
|
return call_user_func( $this->mValidationCallback, $value, $alldata, $this->mParent ); |
includes/htmlform/HTMLSelectAndOtherField.php 1 location
|
@@ 125-130 (lines=6) @@
|
| 122 |
|
return $p; |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
if ( isset( $this->mParams['required'] ) |
| 126 |
|
&& $this->mParams['required'] !== false |
| 127 |
|
&& $value[1] === '' |
| 128 |
|
) { |
| 129 |
|
return $this->msg( 'htmlform-required' )->parse(); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
return true; |
| 133 |
|
} |