Replace deprecated call.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Tue, 9 Oct 2012 09:29:09 +0000 (11:29 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 9 Oct 2012 09:43:06 +0000 (09:43 +0000)
Change-Id: I71866194d72bca059e28b0bd74f4ecd5686743c4

includes/Article.php

index 2180e88..ee96338 100644 (file)
@@ -1960,7 +1960,13 @@ class Article extends Page {
         * @return bool
         */
        public function updateRestrictions( $limit = array(), $reason = '', &$cascade = 0, $expiry = array() ) {
-               return $this->mPage->updateRestrictions( $limit, $reason, $cascade, $expiry );
+               return $this->mPage->doUpdateRestrictions(
+                       $limit,
+                       $expiry,
+                       $cascade,
+                       $reason,
+                       $this->getContext()->getUser()
+               );
        }
 
        /**