Fix notice when restbaseCompat is omitted
authorMatthew Flaschen <mflaschen@wikimedia.org>
Wed, 2 Sep 2015 03:50:05 +0000 (23:50 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Wed, 2 Sep 2015 03:50:05 +0000 (23:50 -0400)
Change-Id: I61042b326b989a4e3250f4a170d76048bdafcbd3

includes/libs/virtualrest/ParsoidVirtualRESTService.php

index 4c96e29..2a179be 100644 (file)
@@ -91,7 +91,7 @@ class ParsoidVirtualRESTService extends VirtualRESTService {
                                // $revision (optional)
                        ) = $parts;
 
-                       if ( $this->params['restbaseCompat'] ) {
+                       if ( isset( $this->params['restbaseCompat'] ) && $this->params['restbaseCompat'] ) {
                                if ( $version !== 'v1' ) {
                                        throw new Exception( "Only RESTBase v1 API is supported." );
                                }