From 404f6be543d351500e6963b82614a1fd0a481573 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 18 Jan 2008 16:19:38 +0000 Subject: [PATCH] Check both the old and the new title of course. What was I smoking? --- includes/Title.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; } -- 2.20.1