From: Brion Vibber Date: Wed, 22 Oct 2008 18:07:15 +0000 (+0000) Subject: Add HTML alongside the original UniversalEditButton application... X-Git-Tag: 1.31.0-rc.0~44648 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=6ff853d8c7d57917397d360335765790f006dabe;p=lhc%2Fweb%2Fwiklou.git Add HTML alongside the original UniversalEditButton application/x-wiki funky link, per suggestions at universaleditbutton.org/Suggestions#Linking_Scheme --- 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' ) + ) ); } }