* It's not to be expected that when you're viewing the current revision of a
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 1 Dec 2005 19:09:45 +0000 (19:09 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 1 Dec 2005 19:09:45 +0000 (19:09 +0000)
  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

index 7c850c3..b457a82 100644 (file)
@@ -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";