From: Roan Kattouw Date: Fri, 18 Jan 2008 16:19:38 +0000 (+0000) Subject: Check both the old and the new title of course. What was I smoking? X-Git-Tag: 1.31.0-rc.0~49926 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=404f6be543d351500e6963b82614a1fd0a481573;p=lhc%2Fweb%2Fwiklou.git Check both the old and the new title of course. What was I smoking? --- diff --git a/includes/Title.php b/includes/Title.php index 721eb40059..af3fd27734 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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]; }