From 1c2345dcfd4c41b54613c5985fa90e472ed1777c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 1 Dec 2005 19:09:45 +0000 Subject: [PATCH] * It's not to be expected that when you're viewing the current revision of a page that the edit link points to the page as it existed when you loaded it, changed it to point to whatever is the latest when the link is followed, like it was before. Still uses oldid= on diff views however. --- includes/Skin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index 7c850c3cdd..b457a82d8f 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1030,7 +1030,9 @@ END; * @access private */ function editUrlOptions() { - if( $this->mRevisionId ) { + global $wgArticle; + + if( $this->mRevisionId && ! $wgArticle->isCurrent() ) { return "action=edit&oldid=" . intval( $this->mRevisionId ); } else { return "action=edit"; -- 2.20.1