Merge "Allow extra slots in write-both/read-new mode."
[lhc/web/wiklou.git] / includes / Storage / PageUpdater.php
index 2376d16..67928f9 100644 (file)
@@ -344,6 +344,10 @@ class PageUpdater {
                // TODO: MCR: check the role and the content's model against the list of supported
                // roles, see T194046.
 
+               if ( $role !== 'main' ) {
+                       throw new InvalidArgumentException( 'Only the main slot is presently supported' );
+               }
+
                $this->slotsUpdate->modifyContent( $role, $content );
        }