Merge "Remove title protection correctly for undeletions and imports"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 17 Aug 2019 09:27:34 +0000 (09:27 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 17 Aug 2019 09:27:34 +0000 (09:27 +0000)
1  2 
includes/Storage/DerivedPageDataUpdater.php

@@@ -659,7 -659,7 +659,7 @@@ class DerivedPageDataUpdater implement
                        $hasLinks = (bool)count( $this->getCanonicalParserOutput()->getLinks() );
                }
  
 -              foreach ( $this->getModifiedSlotRoles() as $role ) {
 +              foreach ( $this->getSlots()->getSlotRoles() as $role ) {
                        $roleHandler = $this->slotRoleRegistry->getRoleHandler( $role );
                        if ( $roleHandler->supportsArticleCount() ) {
                                $content = $this->getRawContent( $role );
                }
  
                // "created" is forced here
-               $this->options['created'] = ( $this->pageState['oldId'] === 0 );
+               $this->options['created'] = ( $this->options['created'] ||
+                                               ( $this->pageState['oldId'] === 0 ) );
  
                $this->revision = $revision;