56 if ( !$this->allowBlankSummary && trim( $this->userSummary ) ==
'' ) {
58 $this->result = self::CONSTRAINT_FAILED;
60 $this->result = self::CONSTRAINT_PASSED;
67 if ( $this->result === self::CONSTRAINT_FAILED ) {
70 $statusValue->
fatal(
'missingsummary' );
71 $statusValue->value = self::AS_SUMMARY_NEEDED;
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
For a new section, do not allow the user to post with an empty summary unless they choose to.
__construct(string $userSummary, bool $allowBlankSummary)
getLegacyStatus()
Get the legacy status for failure (or success)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
fatal( $message,... $parameters)
Add an error and set OK to false, indicating that the operation as a whole was fatal.
Interface for all constraints that can prevent edits.