Add HTML <link rel="edit"> alongside the original UniversalEditButton application...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 22 Oct 2008 18:07:15 +0000 (18:07 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 22 Oct 2008 18:07:15 +0000 (18:07 +0000)
includes/OutputPage.php

index e07c74b..74feac9 100644 (file)
@@ -905,12 +905,19 @@ class OutputPage {
                if( $wgUniversalEditButton ) {
                        if( isset( $wgArticle ) && isset( $wgTitle ) && $wgTitle->quickUserCan( 'edit' )
                                && ( $wgTitle->exists() || $wgTitle->quickUserCan( 'create' ) ) ) {
+                               // Original UniversalEditButton
                                $this->addLink( array(
                                        'rel' => 'alternate',
                                        'type' => 'application/x-wiki',
                                        'title' => wfMsg( 'edit' ),
                                        'href' => $wgTitle->getFullURL( 'action=edit' )
                                ) );
+                               // Alternate edit link
+                               $this->addLink( array(
+                                       'rel' => 'edit',
+                                       'title' => wfMsg( 'edit' ),
+                                       'href' => $wgTitle->getFullURL( 'action=edit' )
+                               ) );
                        }
                }