Only variables can be passed by reference...
authorReedy <reedy@wikimedia.org>
Wed, 12 Dec 2012 20:23:47 +0000 (20:23 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 22 Dec 2012 18:26:10 +0000 (18:26 +0000)
Change-Id: Ifc0f9a25148e8728b3b57885ca241853f0c2a894

includes/Title.php

index bdaa66f..a20367d 100644 (file)
@@ -2361,7 +2361,8 @@ class Title {
                $expiry = array( 'create' => $expiry );
 
                $page = WikiPage::factory( $this );
-               $status = $page->doUpdateRestrictions( $limit, $expiry, false, $reason, $wgUser );
+               $cascade = false;
+               $status = $page->doUpdateRestrictions( $limit, $expiry, $cascade, $reason, $wgUser );
 
                return $status->isOK();
        }