From: Magnus Manske Date: Mon, 1 Sep 2003 13:59:33 +0000 (+0000) Subject: Approve link X-Git-Tag: 1.1.0~292 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=65770a92202c35e46049c9f1869cc7c1533e7fe8;p=lhc%2Fweb%2Fwiklou.git Approve link --- diff --git a/includes/Skin.php b/includes/Skin.php index 247d3e59dc..1cbddf6a15 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -337,7 +337,7 @@ class Skin { function pageTitleLinks() { - global $wgOut, $wgTitle, $oldid, $action, $diff, $wgUser, $wgLang; + global $wgOut, $wgTitle, $oldid, $action, $diff, $wgUser, $wgLang, $wgUseApproval ; $s = $this->printableLink(); @@ -348,7 +348,16 @@ class Skin { $style = $this->getInternalLinkAttributes( $link, $name ); $s .= " | {$name}"; } - } +# This will show the "Approve" link if $wgUseApproval=true; +if ( isset ( $wgUseApproval ) && $wgUseApproval ) +{ + $t = $wgTitle->getDBkey(); + $name = "Approve this article" ; + $link = "http://test.wikipedia.org/w/magnus/wiki.phtml?title={$t}&action=submit&doit=1" ; +#wfEscapeHTML( wfImageUrl( $name ) ); + $style = $this->getExternalLinkAttributes( $link, $name ); + $s .= " | {$name}" ; +} } if ( "history" == $action || isset( $diff ) || isset( $oldid ) ) { $s .= " | " . $this->makeKnownLink( $wgTitle->getPrefixedText(), wfMsg( "currentrev" ) );