Check both the old and the new title of course. What was I smoking?
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 18 Jan 2008 16:19:38 +0000 (16:19 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 18 Jan 2008 16:19:38 +0000 (16:19 +0000)
includes/Title.php

index 721eb40..af3fd27 100644 (file)
@@ -2311,7 +2311,9 @@ class Title {
                if ( $auth ) {
                        global $wgUser;
                        $errors = array_merge($this->getUserPermissionsErrors('move', $wgUser),
-                                       $this->getUserPermissionsErrors('edit', $wgUser));
+                                       $this->getUserPermissionsErrors('edit', $wgUser),
+                                       $nt->getUserPermissionsErrors('move', $wgUser),
+                                       $nt->getUserPermissionsErrors('edit', $wgUser));
                        if($errors !== array())
                                return $errors[0][0];
                }