- function wfSpecialAllmessages()
- {
- global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache, $wgTitle;
-
- $fname = "wfSpecialAllMessages";
- wfProfileIn( $fname );
-
- wfProfileIn( "$fname-setup");
- $ot = $wgRequest->getText( 'ot' );
- $mwMsg =& MagicWord::get( MAG_MSG );
-
- $navText = wfMsg( 'allmessagestext', $mwMsg->getSynonym( 0 ) );
- $first = true;
- $sortedArray = $wgAllMessagesEn;
- ksort( $sortedArray );
- $messages = array();
- $wgMessageCache->disableTransform();
- foreach ( $sortedArray as $key => $enMsg ) {
- $messages[$key]['enmsg'] = $enMsg;
- $messages[$key]['statmsg'] = wfMsgNoDb( $key );
- $messages[$key]['msg'] = wfMsg ( $key );
- }
- wfProfileOut( "$fname-setup" );
-
- wfProfileIn( "$fname-output" );
- if ($ot == 'php') {
- $navText .= makePhp($messages);
- $wgOut->addHTML('PHP | <a href="'.$wgTitle->escapeLocalUrl('ot=html').'">HTML</a><pre>'.htmlspecialchars($navText).'</pre>');
- } else {
- $wgOut->addHTML( '<a href="'.$wgTitle->escapeLocalUrl('ot=php').'">PHP</a> | HTML' );
- $wgOut->addWikiText( $navText );
- $wgOut->addHTML( makeHTMLText( $messages ) );
- }
- wfProfileOut( "$fname-output" );
-
- wfProfileOut( $fname );
+/**
+ *
+ */
+function wfSpecialAllmessages() {
+ global $wgOut, $wgAllMessagesEn, $wgRequest, $wgMessageCache, $wgTitle;
+
+ $fname = "wfSpecialAllMessages";
+ wfProfileIn( $fname );
+
+ wfProfileIn( "$fname-setup");
+ $ot = $wgRequest->getText( 'ot' );
+ $mwMsg =& MagicWord::get( MAG_MSG );
+
+ $navText = wfMsg( 'allmessagestext', $mwMsg->getSynonym( 0 ) );
+ $first = true;
+ $sortedArray = $wgAllMessagesEn;
+ ksort( $sortedArray );
+ $messages = array();
+ $wgMessageCache->disableTransform();
+ foreach ( $sortedArray as $key => $enMsg ) {
+ $messages[$key]['enmsg'] = $enMsg;
+ $messages[$key]['statmsg'] = wfMsgNoDb( $key );
+ $messages[$key]['msg'] = wfMsg ( $key );
+ }
+ wfProfileOut( "$fname-setup" );
+
+ wfProfileIn( "$fname-output" );
+ if ($ot == 'php') {
+ $navText .= makePhp($messages);
+ $wgOut->addHTML('PHP | <a href="'.$wgTitle->escapeLocalUrl('ot=html').'">HTML</a><pre>'.htmlspecialchars($navText).'</pre>');
+ } else {
+ $wgOut->addHTML( '<a href="'.$wgTitle->escapeLocalUrl('ot=php').'">PHP</a> | HTML' );
+ $wgOut->addWikiText( $navText );
+ $wgOut->addHTML( makeHTMLText( $messages ) );