Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1429,6 +1429,7 @@ |
1430 | 1430 | $type: 'normal' or 'history' for old/diff views |
1431 | 1431 | &$msg: overridable message; usually 'copyright' or 'history_copyright'. This message must be in HTML format, not wikitext! |
1432 | 1432 | &$link: overridable HTML link to be passed into the message as $1 |
| 1433 | +&$forContent: overridable flag if copyright footer is shown in content language. |
1433 | 1434 | |
1434 | 1435 | 'SkinSubPageSubtitle': At the beginning of Skin::subPageSubtitle() |
1435 | 1436 | $skin: Skin object |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1525,11 +1525,16 @@ |
1526 | 1526 | return $out; |
1527 | 1527 | } |
1528 | 1528 | // Allow for site and per-namespace customization of copyright notice. |
| 1529 | + $forContent = true; |
1529 | 1530 | if( isset( $wgArticle ) ) { |
1530 | | - wfRunHooks( 'SkinCopyrightFooter', array( $wgArticle->getTitle(), $type, &$msg, &$link ) ); |
| 1531 | + wfRunHooks( 'SkinCopyrightFooter', array( $wgArticle->getTitle(), $type, &$msg, &$link, &$forContent ) ); |
1531 | 1532 | } |
1532 | 1533 | |
1533 | | - $out .= wfMsgForContent( $msg, $link ); |
| 1534 | + if ( $forContent ) { |
| 1535 | + $out .= wfMsgForContent( $msg, $link ); |
| 1536 | + } else { |
| 1537 | + $out .= wfMsg( $msg, $link ); |
| 1538 | + } |
1534 | 1539 | return $out; |
1535 | 1540 | } |
1536 | 1541 | |
Index: trunk/extensions/WikimediaMessages/WikimediaMessages.php |
— | — | @@ -41,9 +41,10 @@ |
42 | 42 | return true; |
43 | 43 | } |
44 | 44 | |
45 | | -function efWikimediaSkinCopyrightFooter( $title, $type, &$msg, &$link ) { |
| 45 | +function efWikimediaSkinCopyrightFooter( $title, $type, &$msg, &$link, &$forContent ) { |
46 | 46 | if( $type != 'history' ) { |
47 | 47 | $msg = 'wikimedia-copyright'; |
| 48 | + $forContent = false; |
48 | 49 | } |
49 | 50 | return true; |
50 | 51 | } |