From 6ff853d8c7d57917397d360335765790f006dabe Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 22 Oct 2008 18:07:15 +0000 Subject: [PATCH] Add HTML alongside the original UniversalEditButton application/x-wiki funky link, per suggestions at http://universaleditbutton.org/Suggestions#Linking_Scheme --- includes/OutputPage.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index e07c74b744..74feac9a95 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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' ) + ) ); } } -- 2.20.1