53 if ( $this->deletedSinceLastEdit && !$this->allowRecreation ) {
54 return self::CONSTRAINT_FAILED;
56 return self::CONSTRAINT_PASSED;
61 if ( $this->deletedSinceLastEdit && !$this->allowRecreation ) {
62 $statusValue->
setResult(
false, self::AS_ARTICLE_WAS_DELETED );
if(ini_get('mbstring.func_overload')) if(!defined('MW_ENTRY_POINT'))
Pre-config setup: Before loading LocalSettings.php.
Make sure user doesn't accidentally recreate a page deleted after they started editing.
__construct(bool $deletedSinceLastEdit, bool $allowRecreation)
bool $deletedSinceLastEdit
getLegacyStatus()
Get the legacy status for failure (or success)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
setResult( $ok, $value=null)
Change operation result.
Interface for all constraints that can prevent edits.