dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5cbc0e
)
Approve link
author
Magnus Manske
<magnusmanske@users.mediawiki.org>
Mon, 1 Sep 2003 13:59:33 +0000
(13:59 +0000)
committer
Magnus Manske
<magnusmanske@users.mediawiki.org>
Mon, 1 Sep 2003 13:59:33 +0000
(13:59 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
247d3e5
..
1cbddf6
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-337,7
+337,7
@@
class Skin {
function pageTitleLinks()
{
function pageTitleLinks()
{
- global $wgOut, $wgTitle, $oldid, $action, $diff, $wgUser, $wgLang;
+ global $wgOut, $wgTitle, $oldid, $action, $diff, $wgUser, $wgLang
, $wgUseApproval
;
$s = $this->printableLink();
$s = $this->printableLink();
@@
-348,7
+348,16
@@
class Skin {
$style = $this->getInternalLinkAttributes( $link, $name );
$s .= " | <a href=\"{$link}\"{$style}>{$name}</a>";
}
$style = $this->getInternalLinkAttributes( $link, $name );
$s .= " | <a href=\"{$link}\"{$style}>{$name}</a>";
}
- }
+# 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 .= " | <a href=\"{$link}\"{$style}>{$name}</a>" ;
+} }
if ( "history" == $action || isset( $diff ) || isset( $oldid ) ) {
$s .= " | " . $this->makeKnownLink( $wgTitle->getPrefixedText(),
wfMsg( "currentrev" ) );
if ( "history" == $action || isset( $diff ) || isset( $oldid ) ) {
$s .= " | " . $this->makeKnownLink( $wgTitle->getPrefixedText(),
wfMsg( "currentrev" ) );