Merge "Remove title protection correctly for undeletions and imports"
[lhc/web/wiklou.git] / includes / Storage / DerivedPageDataUpdater.php
index ca99a7b..4903cf0 100644 (file)
@@ -1208,7 +1208,8 @@ class DerivedPageDataUpdater implements IDBAccessObject, LoggerAwareInterface {
                }
 
                // "created" is forced here
-               $this->options['created'] = ( $this->pageState['oldId'] === 0 );
+               $this->options['created'] = ( $this->options['created'] ||
+                                               ( $this->pageState['oldId'] === 0 ) );
 
                $this->revision = $revision;