diff options
author | Gabriel Wicke <gwicke@users.mediawiki.org> | 2004-07-05 22:05:28 +0000 |
---|---|---|
committer | Gabriel Wicke <gwicke@users.mediawiki.org> | 2004-07-05 22:05:28 +0000 |
commit | 1082447248e0057a4f0b85e1cdc3fec083f1d483 (patch) | |
tree | 82bef58f7f25a19b453e987dbade8c9d75d650c8 | |
parent | 8d15b584046a916ab7dbccdd770564d5522708a8 (diff) | |
download | mediawikicore-1082447248e0057a4f0b85e1cdc3fec083f1d483.tar.gz mediawikicore-1082447248e0057a4f0b85e1cdc3fec083f1d483.zip |
links from one version to the other, typo fix
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/4240
-rw-r--r-- | includes/SpecialAllmessages.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/includes/SpecialAllmessages.php b/includes/SpecialAllmessages.php index 414a9bd9fe18..01f0bd271b72 100644 --- a/includes/SpecialAllmessages.php +++ b/includes/SpecialAllmessages.php @@ -2,12 +2,11 @@ function wfSpecialAllmessages() { - global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache; + global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache, $wgTitle; $ot = $wgRequest->getText('ot'); $mwMsg =& MagicWord::get( MAG_MSG ); set_time_limit(0); $navText = str_replace( "$1", $mwMsg->getSynonym( 0 ), wfMsg("allmessagestext" ) ); - $first = true; $sortedArray = $wgAllMessagesEn; ksort( $sortedArray ); @@ -20,10 +19,12 @@ } if ($ot == 'html') { $navText .= makeWikiText($messages); - $wgOut->addWikiText( $navText ); + $wgOut->addHTML('<a href="'.$wgTitle->getLocalUrl('ot=php').'">PHP</a> | HTML'); + $wgOut->addWikiText($navText); } else { $navText .= makePhp($messages); - $wgOut->addHTML('<pre>'.htmlspecialchars($navText).'</pre>'); + $wgOut->addHTML('PHP | <a href="'.$wgTitle->getLocalUrl('ot=html').'">HTML</a><pre>'.htmlspecialchars($navText).'</pre>'); + } return; } function makePhp($messages) { |